PXL
stream.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright 2024 XCENA Inc.
3 
4 #pragma once
5 
6 #include <cstdint>
7 #include <pxl/v3_api_guard.hpp>
8 
9 namespace pxl
10 {
11 
25 class Stream
26 {
27 public:
33  virtual uint32_t streamId() const = 0;
34 
35 protected:
39  Stream() = default;
43  virtual ~Stream() = default;
44 };
45 
57 
84 void destroyStream(Stream* stream);
85 
86 } // namespace pxl
An asynchronous work queue for device operations.
Definition: stream.hpp:26
virtual uint32_t streamId() const =0
Gets the stream ID.
Stream()=default
Default constructor.
virtual ~Stream()=default
Default virtual destructor.
Definition: config.hpp:13
void destroyStream(Stream *stream)
Destroys a stream.
Stream * createStream()
Creates a stream.