File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
05_StreamingAndBufferDeviceAddressApp Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ template<typename capability_traits=nbl::hlsl::jit::device_capabilities_traits>
1010void dummyTraitTest () {}
1111
1212[numthreads (WorkgroupSize,1 ,1 )]
13+ [shader ("compute" )]
1314void main (uint32_t3 ID : SV_DispatchThreadID )
1415{
1516 dummyTraitTest ();
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ class StreamingAndBufferDeviceAddressApp final : public application_templates::M
102102 return logFail (" Could not load shader!" );
103103
104104 // lets go straight from ICPUSpecializedShader to IGPUSpecializedShader
105- shader = IAsset::castDown<IShader>(assets[0 ]);
105+ const auto shaderSource = IAsset::castDown<IShader>(assets[0 ]);
106+ shader = m_device->compileShader ({shaderSource.get ()});
106107 // The down-cast should not fail!
107108 assert (shader);
108109 }
You can’t perform that action at this time.
0 commit comments