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

Method GetBlackTexture

trinity/PostProcess/Tr2PostProcessRenderer.cpp:1709–1714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1707}
1708
1709Tr2GpuResourcePool::Texture Tr2PostProcessRenderer::GetBlackTexture( Tr2GpuResourcePool& gpuResourcePool ) const
1710{
1711 const uint32_t blackColor[4 * 4] = {};
1712 Tr2SubresourceData initData = { blackColor, 4 * sizeof( uint32_t ), 4 * 4 * sizeof( uint32_t ) };
1713 return gpuResourcePool.GetPersistentTexture( "Black", 4, 4, Tr2RenderContextEnum::PIXEL_FORMAT_B8G8R8A8_UNORM, Tr2GpuUsage::SHADER_RESOURCE, &initData );
1714}

Callers

nothing calls this directly

Calls 1

GetPersistentTextureMethod · 0.80

Tested by

no test coverage detected