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

Function SMFormat

SHTest/SampleFramework12/v1.04/Graphics/ShadowHelper.cpp:200–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200DXGI_FORMAT SMFormat()
201{
202 Assert_(currSMMode != ShadowMapMode::NumValues);
203
204 if(currSMMode == ShadowMapMode::EVSM)
205 return DXGI_FORMAT_R32G32B32A32_FLOAT;
206 else if(currSMMode == ShadowMapMode::MSM)
207 return DXGI_FORMAT_R16G16B16A16_UNORM;
208
209 Assert_(false);
210 return DXGI_FORMAT_UNKNOWN;
211}
212
213void ConvertShadowMap(ID3D12GraphicsCommandList7* cmdList, const DepthBuffer& depthMap, RenderTexture& smTarget,
214 uint32 arraySlice, RenderTexture& tempTarget, float filterSizeU, float filterSizeV,

Callers 1

CreatePSOsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected