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

Function GetEmptySSAO

trinity/Eve/EveSpaceSceneRenderDriver.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40Tr2GpuResourcePool::Texture GetEmptySSAO( Tr2GpuResourcePool& gpuResourcePool )
41{
42 const uint8_t white[] = { 255, 255, 255, 255 };
43 Tr2SubresourceData initData = { white, 4, 4 };
44
45 return gpuResourcePool.GetPersistentTexture( "EmptySSAO", 1, 1, ImageIO::PIXEL_FORMAT_R8G8B8A8_UNORM, Tr2GpuUsage::SHADER_RESOURCE, &initData );
46}
47
48void DeleteUpscalingContext( Tr2UpscalingContextAL* context )
49{

Callers 2

RenderSSAOMethod · 0.85
ExecuteMethod · 0.85

Calls 1

GetPersistentTextureMethod · 0.80

Tested by

no test coverage detected