MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / GetTextureBindingSetItem

Method GetTextureBindingSetItem

src/engine/MaterialBindingCache.cpp:108–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108nvrhi::BindingSetItem MaterialBindingCache::GetTextureBindingSetItem(uint32_t slot, const std::shared_ptr<LoadedTexture>& texture) const
109{
110 return nvrhi::BindingSetItem::Texture_SRV(slot, texture && texture->texture ? texture->texture.Get() : m_FallbackTexture.Get());
111}
112
113nvrhi::BindingSetHandle donut::engine::MaterialBindingCache::CreateMaterialBindingSet(const Material* material)
114{

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected