MCPcopy Create free account
hub / github.com/TheRealMJP/Shadows / MakeDefines

Method MakeDefines

Shadows/SampleFramework11/ShaderCompilation.cpp:504–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504void CompileOptions::MakeDefines(D3D_SHADER_MACRO defines[MaxDefines + 1]) const
505{
506 for(uint32 i = 0; i < numDefines; ++i)
507 {
508 defines[i].Name = buffer + nameOffsets[i];
509 defines[i].Definition = buffer + defineOffsets[i];
510 }
511
512 defines[numDefines].Name = nullptr;
513 defines[numDefines].Definition = nullptr;
514}
515
516}

Callers 1

CompileShaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected