diff --git a/Sources/integrations/kope.c b/Sources/integrations/kope.c index f81d99d..5b5e24b 100644 --- a/Sources/integrations/kope.c +++ b/Sources/integrations/kope.c @@ -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",