Skip to content

Commit

Permalink
(fix): Bind cbuffer to fragment shader
Browse files Browse the repository at this point in the history
  • Loading branch information
hyblocker committed Sep 26, 2024
1 parent 565a408 commit 4b73b90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Backends/RmlUi_Renderer_DX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ void RenderInterface_DX11::RenderGeometry(Rml::CompiledGeometryHandle handle, Rm

m_d3d_context->IASetInputLayout(m_vertex_layout);
m_d3d_context->VSSetConstantBuffers(0, 1, &m_shader_buffer);
m_d3d_context->PSSetConstantBuffers(0, 1, &m_shader_buffer);

// Bind vertex and index buffers, issue draw call
uint32_t stride = sizeof(Rml::Vertex);
Expand Down

0 comments on commit 4b73b90

Please sign in to comment.