MCPcopy Create free account
hub / github.com/TheRealMJP/DXRPathTracer / SMFormat

Function SMFormat

SampleFramework12/v1.02/Graphics/ShadowHelper.cpp:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281DXGI_FORMAT SMFormat()
282{
283 Assert_(currSMMode != ShadowMapMode::NumValues);
284
285 if(currSMMode == ShadowMapMode::EVSM)
286 return DXGI_FORMAT_R32G32B32A32_FLOAT;
287 else if(currSMMode == ShadowMapMode::MSM)
288 return DXGI_FORMAT_R16G16B16A16_UNORM;
289
290 Assert_(false);
291 return DXGI_FORMAT_UNKNOWN;
292}
293
294void ConvertShadowMap(ID3D12GraphicsCommandList* cmdList, const DepthBuffer& depthMap, RenderTexture& smTarget,
295 uint32 arraySlice, RenderTexture& tempTarget, float filterSizeU, float filterSizeV,

Callers 1

CreatePSOsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected