diff options
Diffstat (limited to 'tools/gfx/d3d12/d3d12-shader-program.cpp')
| -rw-r--r-- | tools/gfx/d3d12/d3d12-shader-program.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gfx/d3d12/d3d12-shader-program.cpp b/tools/gfx/d3d12/d3d12-shader-program.cpp index a39f20465..e52fa320e 100644 --- a/tools/gfx/d3d12/d3d12-shader-program.cpp +++ b/tools/gfx/d3d12/d3d12-shader-program.cpp @@ -10,14 +10,14 @@ using namespace Slang; Result ShaderProgramImpl::createShaderModule( slang::EntryPointReflection* entryPointInfo, - ComPtr<ISlangBlob> kernelCode) + List<ComPtr<ISlangBlob>>& kernelCodes) { ShaderBinary shaderBin; shaderBin.stage = entryPointInfo->getStage(); shaderBin.entryPointInfo = entryPointInfo; shaderBin.code.addRange( - reinterpret_cast<const uint8_t*>(kernelCode->getBufferPointer()), - (Index)kernelCode->getBufferSize()); + reinterpret_cast<const uint8_t*>(kernelCodes[0]->getBufferPointer()), + (Index)kernelCodes[0]->getBufferSize()); m_shaders.add(_Move(shaderBin)); return SLANG_OK; } |
