Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::StreamChannelDescriptor Class Reference

#include <InputStreamLayout.h>

Public Member Functions

 AZ_TYPE_INFO (StreamChannelDescriptor, "{BF99DCBE-C30B-443A-A92C-B07EE6F0FB1D}")
 
 StreamChannelDescriptor (ShaderSemantic semantic, Format format, uint32_t byteOffset, uint32_t bufferIndex)
 
HashValue64 GetHash (HashValue64 seed=HashValue64{ 0 }) const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

ShaderSemantic m_semantic
 The semantic of the stream channel.
 
Format m_format = Format::Unknown
 The format of each element in the channel.
 
uint32_t m_bufferIndex = 0
 The parent stream buffer index.
 
uint32_t m_byteOffset = 0
 

Detailed Description

Describes an instance of a stream channel within a stream layout. A stream channel corresponds to a single data element on the input vertex, and it has a semantic associated with it which matches the element within the shader. The data in a stream channel can be offset from the base of the parent StreamBufferView to interleave multiple channels within the same buffer.

Member Data Documentation

◆ m_byteOffset

uint32_t AZ::RHI::StreamChannelDescriptor::m_byteOffset = 0

Byte offset from the base of the StreamBufferView to the first element in this channel. Used to interleave multiple channels in a single buffer.


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