MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetUav

Method SetUav

trinityal/src/Tr2ResourceSetAL.cpp:310–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310bool Tr2ResourceSetDescriptionAL::SetUav( Tr2RenderContextEnum::ShaderType stage, uint32_t registerIndex, const Tr2BufferAL& buffer )
311{
312 if( m_registerMap.uavCount == 0 )
313 {
314 return false;
315 }
316 auto index = m_registerMap.uavs[stage][registerIndex];
317 if( index >= m_registerMap.uavCount )
318 {
319 return false;
320 }
321 auto& resource = m_uav[index];
322 if( resource.Is( buffer ) )
323 {
324 return false;
325 }
326 resource.type = Resource::BUFFER;
327 resource.buffer = buffer;
328 return true;
329}
330
331bool Tr2ResourceSetDescriptionAL::SetUav( Tr2RenderContextEnum::ShaderType stage, uint32_t registerIndex, const Tr2TextureAL& texture, uint32_t mip )
332{

Callers 9

ApplyUavMethod · 0.80
ApplyUavMethod · 0.80
ApplyUavMethod · 0.80
ApplyUavMethod · 0.80
ApplyUavMethod · 0.80
DispatchMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

IsMethod · 0.80

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64