Inherits Data::InstanceData.
|
using | StreamInfoList = AZStd::fixed_vector< StreamBufferInfo, RHI::Limits::Pipeline::StreamCountMax > |
|
using | StreamBufferViewList = AZStd::fixed_vector< RHI::StreamBufferView, RHI::Limits::Pipeline::StreamCountMax > |
|
|
| AZ_INSTANCE_DATA (ModelLod, "{3C796FC9-2067-4E0F-A660-269F8254D1D5}") |
|
| AZ_CLASS_ALLOCATOR (ModelLod, AZ::SystemAllocator) |
|
void | WaitForUpload () |
| Blocks the CPU until pending buffer uploads have completed.
|
|
AZStd::span< const Mesh > | GetMeshes () const |
|
void | CheckOptionalStreams (ShaderOptionGroup &shaderOptions, const ShaderInputContract &contract, size_t meshIndex, const MaterialModelUvOverrideMap &materialModelUvMap={}, const MaterialUvNameMap &materialUvNameMap={}) const |
|
bool | GetStreamsForMesh (RHI::InputStreamLayout &layoutOut, ModelLod::StreamBufferViewList &streamBufferViewsOut, UvStreamTangentBitmask *uvStreamTangentBitmaskOut, const ShaderInputContract &contract, size_t meshIndex, const MaterialModelUvOverrideMap &materialModelUvMap={}, const MaterialUvNameMap &materialUvNameMap={}) const |
| Fills a InputStreamLayout and StreamBufferViewList for the set of streams that satisfy a ShaderInputContract.
|
|
◆ CheckOptionalStreams()
void AZ::RPI::ModelLod::CheckOptionalStreams |
( |
ShaderOptionGroup & |
shaderOptions, |
|
|
const ShaderInputContract & |
contract, |
|
|
size_t |
meshIndex, |
|
|
const MaterialModelUvOverrideMap & |
materialModelUvMap = {} , |
|
|
const MaterialUvNameMap & |
materialUvNameMap = {} |
|
) |
| const |
Compares a ShaderInputContract to the mesh's available streams, and if any of them are optional, sets the corresponding "*_isBound" shader option. Call this function to update the ShaderOptionKey before fetching a ShaderVariant, to find a variant that is compatible with this mesh's streams.
The documentation for this class was generated from the following file:
- Gems/Atom/RPI/Code/Include/Atom/RPI.Public/Model/ModelLod.h