LiteFX::Rendering::DescriptorBinding::stride¶
The stride of a structure in a structured buffer.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
UInt32 stride = 0;Description¶
Setting this value to 0 derives the stride from the element size, which is usually the desired purpose anyway. Only if you ever want to read a structure differently on the GPU then you write it on the CPU would you want to set the stride to a different value.
This property is ignored, if the resource binds to a descriptor other than DescriptorType::StructuredBuffer or DescriptorType::RWStructuredBuffer.