mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 07:05:46 +00:00
shader_recompiler: throw on missing geometry streams in geometry shaders
This commit is contained in:
parent
20f06586e9
commit
749f0564ae
5 changed files with 16 additions and 3 deletions
|
@ -261,7 +261,9 @@ void DefineEntryPoint(const IR::Program& program, EmitContext& ctx, Id main) {
|
|||
case Stage::Geometry:
|
||||
execution_model = spv::ExecutionModel::Geometry;
|
||||
ctx.AddCapability(spv::Capability::Geometry);
|
||||
ctx.AddCapability(spv::Capability::GeometryStreams);
|
||||
if (ctx.profile.support_geometry_streams) {
|
||||
ctx.AddCapability(spv::Capability::GeometryStreams);
|
||||
}
|
||||
switch (ctx.runtime_info.input_topology) {
|
||||
case InputTopology::Points:
|
||||
ctx.AddExecutionMode(main, spv::ExecutionMode::InputPoints);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue