v2.0.0
Loading...
Searching...
No Matches
DISP3DLIB::GpuStream Struct Reference

CPU-side contents of one GPU buffer of a renderable. More...

#include <rendertypes.h>

Public Attributes

const void * data = nullptr
quint32 bytes = 0
quint64 generation = 0

Detailed Description

CPU-side contents of one GPU buffer of a renderable.

Renderables own only CPU data; the renderer keeps the GPU copies and uploads a stream again when its generation changes. The data must stay valid until the next change of the renderable.

Definition at line 98 of file rendertypes.h.

Member Data Documentation

◆ bytes

quint32 DISP3DLIB::GpuStream::bytes = 0

Size in bytes.

Definition at line 101 of file rendertypes.h.

◆ data

const void* DISP3DLIB::GpuStream::data = nullptr

First byte, or nullptr when the stream is empty.

Definition at line 100 of file rendertypes.h.

◆ generation

quint64 DISP3DLIB::GpuStream::generation = 0

Bumped by the owner on every change of the data.

Definition at line 102 of file rendertypes.h.


The documentation for this struct was generated from the following file: