UYVY backend
This commit is contained in:
@@ -16,6 +16,16 @@ public:
|
||||
std::size_t byteCount = 0;
|
||||
};
|
||||
|
||||
struct ReadbackRequest
|
||||
{
|
||||
GLuint framebuffer = 0;
|
||||
unsigned width = 0;
|
||||
unsigned height = 0;
|
||||
GLenum format = GL_BGRA;
|
||||
GLenum type = GL_UNSIGNED_INT_8_8_8_8_REV;
|
||||
uint64_t frameIndex = 0;
|
||||
};
|
||||
|
||||
PboReadbackRing() = default;
|
||||
PboReadbackRing(const PboReadbackRing&) = delete;
|
||||
PboReadbackRing& operator=(const PboReadbackRing&) = delete;
|
||||
@@ -24,7 +34,7 @@ public:
|
||||
bool Initialize(std::size_t depth, std::size_t byteCount);
|
||||
void Shutdown();
|
||||
|
||||
bool QueueReadback(GLuint framebuffer, unsigned width, unsigned height, uint64_t frameIndex);
|
||||
bool QueueReadback(const ReadbackRequest& request);
|
||||
bool TryAcquireCompleted(CompletedReadback& readback);
|
||||
void ReleaseCompleted(const CompletedReadback& readback);
|
||||
void DrainCompleted();
|
||||
|
||||
Reference in New Issue
Block a user