Kanzi 4.0.0-beta2
kanzi::gfx::ResourceSetCreateInfo::BufferView Struct Reference

Describes a buffer view. May be uniform or storage buffer. More...

#include <kanzi/gfx/create_info.hpp>

Public Attributes

BufferHandleGuard buffer
 The buffer that contains the uniform or storage data and has the BufferUsageFlag::UniformBuffer or BufferUsageFlag::StorageBuffer set.
 
uint32_t offset
 The offset into the buffer to bind in bytes.
 
uint32_t size
 The size of the buffer in bytes. Setting the value as limits::MaxBufferSize defines the size as the rest of the buffer.
 

Detailed Description

Describes a buffer view. May be uniform or storage buffer.

Member Data Documentation

◆ buffer

BufferHandleGuard kanzi::gfx::ResourceSetCreateInfo::BufferView::buffer

The buffer that contains the uniform or storage data and has the BufferUsageFlag::UniformBuffer or BufferUsageFlag::StorageBuffer set.

◆ offset

uint32_t kanzi::gfx::ResourceSetCreateInfo::BufferView::offset

The offset into the buffer to bind in bytes.

The offset must be a multiple of the current DevicePropertyId::UniformBufferOffsetAlignment.

◆ size

uint32_t kanzi::gfx::ResourceSetCreateInfo::BufferView::size

The size of the buffer in bytes. Setting the value as limits::MaxBufferSize defines the size as the rest of the buffer.


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