From a64d7164f4ffe7fa402f48297d8851701e0d8e56 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Tue, 5 Nov 2024 19:17:53 +0100 Subject: [PATCH] Fix raytracing --- .../Graphics5/Direct3D12/Sources/kope/direct3d12/pipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/pipeline.cpp b/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/pipeline.cpp index b96e96daa..ab95c4816 100644 --- a/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/pipeline.cpp +++ b/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/pipeline.cpp @@ -463,7 +463,7 @@ void kope_d3d12_ray_pipeline_init(kope_g5_device *device, kope_d3d12_ray_pipelin ID3D12StateObjectProperties *props; pipe->pipe->QueryInterface(&props); - uint8_t *data = (uint8_t *)kope_g5_buffer_lock(&pipe->shader_ids); + uint8_t *data = (uint8_t *)kope_g5_buffer_lock_all(&pipe->shader_ids); wchar_t raygen[1024]; kinc_microsoft_convert_string(raygen, parameters->gen_shader_name, 1024);