Skip to content

Commit

Permalink
Make instanced rendering work
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 21, 2024
1 parent a2aa227 commit d154eaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void kope_d3d12_render_pipeline_init(kope_d3d12_device *device, kope_d3d12_rende
for (size_t buffer_index = 0; buffer_index < parameters->vertex.buffers_count; ++buffer_index) {
for (size_t attribute_index = 0; attribute_index < parameters->vertex.buffers[buffer_index].attributes_count; ++attribute_index) {
input_elements[input_element_index].SemanticName = "TEXCOORD";
input_elements[input_element_index].SemanticIndex = (UINT)attribute_index;
input_elements[input_element_index].SemanticIndex = parameters->vertex.buffers[buffer_index].attributes[attribute_index].shader_location;
input_elements[input_element_index].InputSlot = (UINT)buffer_index;
input_elements[input_element_index].AlignedByteOffset = (attribute_index == 0) ? 0 : D3D12_APPEND_ALIGNED_ELEMENT;
input_elements[input_element_index].InputSlotClass = parameters->vertex.buffers[buffer_index].step_mode == KOPE_D3D12_VERTEX_STEP_MODE_INSTANCE
Expand Down

0 comments on commit d154eaa

Please sign in to comment.