Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HansKristian-Work/dxil-spirv.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2022-11-08 16:07:32 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2022-11-08 16:07:51 +0300
commit3c41873786c8cd7e2a9eaa751bdcda0976c029a8 (patch)
tree09a4b810a89db1a2bfee0aec231e0241c6a02136
parente6410fb48a2a43750512ab91586beda001fc721f (diff)
Enable mesh shading caps for PerPrimitiveEXT frag input.
-rw-r--r--dxil_converter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dxil_converter.cpp b/dxil_converter.cpp
index 6d2827e..53f8c67 100644
--- a/dxil_converter.cpp
+++ b/dxil_converter.cpp
@@ -4486,7 +4486,11 @@ bool Converter::Impl::emit_stage_input_variables()
builder.addDecoration(variable_id, spv::DecorationComponent, vk_input.component);
if (execution_model == spv::ExecutionModelFragment && (vk_input.flags & STAGE_IO_PER_PRIMITIVE))
+ {
builder.addDecoration(variable_id, spv::DecorationPerPrimitiveEXT);
+ builder.addExtension("SPV_EXT_mesh_shader");
+ builder.addCapability(spv::CapabilityMeshShadingEXT);
+ }
}
}