Skip to content

Commit

Permalink
Merge pull request #421 from jhch3/d3d11_compute_shader_init_fix
Browse files Browse the repository at this point in the history
fix d3d11 compute shader init /sample compute shader -> Compute::setS…
  • Loading branch information
RobDangerous authored Sep 1, 2019
2 parents b8b6ec7 + 430fc1a commit 2a19f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backends/Graphics4/Direct3D11/Sources/Kore/ComputeImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void kinc_compute_shader_init(kinc_compute_shader_t *shader, void *_data, int le
shader->impl.data = &data[index];
shader->impl.length = length - index;

kinc_microsoft_affirm(device->CreateComputeShader(shader->impl.data, shader->impl.length, nullptr, (ID3D11ComputeShader **)&shader));
kinc_microsoft_affirm(device->CreateComputeShader(shader->impl.data, shader->impl.length, nullptr, (ID3D11ComputeShader **)&shader->impl.shader));

kinc_microsoft_affirm(device->CreateBuffer(&CD3D11_BUFFER_DESC(getMultipleOf16(shader->impl.constantsSize), D3D11_BIND_CONSTANT_BUFFER), nullptr,
&shader->impl.constantBuffer));
Expand Down

0 comments on commit 2a19f25

Please sign in to comment.