Skip to content

Commit

Permalink
Do not reserve descriptor space for dynamic descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 11, 2024
1 parent 4dc2b80 commit 80d99e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Sources/integrations/kope.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,12 @@ void kope_export(char *directory, api_kind api) {

switch (d.kind) {
case DEFINITION_CONST_CUSTOM:
fprintf(output, "\tkope_d3d12_descriptor_set_set_buffer_view_cbv(device, &set->set, parameters->%s, %" PRIu64 ");\n",
get_name(get_global(d.global)->name), other_index);
if (!has_attribute(&get_global(d.global)->attributes, add_name("indexed"))) {
fprintf(output, "\tkope_d3d12_descriptor_set_set_buffer_view_cbv(device, &set->set, parameters->%s, %" PRIu64 ");\n",
get_name(get_global(d.global)->name), other_index);
other_index += 1;
}
fprintf(output, "\tset->%s = parameters->%s;\n", get_name(get_global(d.global)->name), get_name(get_global(d.global)->name));
other_index += 1;
break;
case DEFINITION_BVH:
fprintf(output, "\tkope_d3d12_descriptor_set_set_bvh_view_srv(device, &set->set, parameters->%s, %" PRIu64 ");\n",
Expand Down

0 comments on commit 80d99e2

Please sign in to comment.