![]() |
LLGL 0.05 Beta
|
Buffer view descriptor structure. More...
#include <BufferFlags.h>
Public Member Functions | |
| BufferViewDescriptor ()=default | |
| BufferViewDescriptor (Format format, std::uint64_t offset=0, std::uint64_t size=LLGL_WHOLE_SIZE) | |
| Initializes the descriptor with all or only some of the components. | |
Public Attributes | |
| Format | format = Format::Undefined |
| Specifies the format of the buffer view. By default Format::Undefined. | |
| std::uint64_t | offset = 0 |
| Specifies the memory offset (in bytes) into the buffer resource. By default 0. | |
| std::uint64_t | size = LLGL_WHOLE_SIZE |
Specifies the memory offset (in bytes) into the buffer resource. By default LLGL_WHOLE_SIZE. | |
Buffer view descriptor structure.
|
default |
|
inline |
Initializes the descriptor with all or only some of the components.
| Format LLGL::BufferViewDescriptor::format = Format::Undefined |
Specifies the format of the buffer view. By default Format::Undefined.
stride greater than zero, this must be Format::Undefined. | std::uint64_t LLGL::BufferViewDescriptor::offset = 0 |
Specifies the memory offset (in bytes) into the buffer resource. By default 0.
size is equal to LLGL_WHOLE_SIZE, the offset is ignored and the entire buffer resource will be occupied by this buffer view. format is Format::Undefined, this must be aligned to the stride the buffer resource was created with. format is not Format::Undefined, this must be aligned to the size of format. | std::uint64_t LLGL::BufferViewDescriptor::size = LLGL_WHOLE_SIZE |
Specifies the memory offset (in bytes) into the buffer resource. By default LLGL_WHOLE_SIZE.
size is LLGL_WHOLE_SIZE, then offset is ignored and the whole buffer range will be used. size is not LLGL_WHOLE_SIZE and format is Format::Undefined, this must be aligned to the stride the buffer resource was created with. size is not LLGL_WHOLE_SIZE and format is not Format::Undefined, this must be aligned to the size of format.