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 #include <cstdint>
6 
7 namespace pxl
8 {
9 
19 class Stream
20 {
21 public:
27  virtual uint32_t streamId() const = 0;
28 
29 protected:
33  Stream() = default;
37  virtual ~Stream() = default;
38 };
39 
51 
78 void destroyStream(Stream* stream);
79 
80 } // namespace pxl
An asynchronous work queue for device operations.
Definition: stream.hpp:20
virtual uint32_t streamId() const =0
Gets the stream ID.
Stream()=default
Default constructor.
virtual ~Stream()=default
Default virtual destructor.
Definition: config.hpp:11
void destroyStream(Stream *stream)
Destroys a stream.
Stream * createStream()
Creates a stream.