mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-28 23:23:05 +00:00
spirv: Use OriginLowerLeft when requested
This commit is contained in:
parent
bafe9e35a9
commit
cfd873275d
1 changed files with 5 additions and 1 deletions
|
@ -212,7 +212,11 @@ void DefineEntryPoint(const IR::Program& program, EmitContext& ctx, Id main) {
|
||||||
break;
|
break;
|
||||||
case Stage::Fragment:
|
case Stage::Fragment:
|
||||||
execution_model = spv::ExecutionModel::Fragment;
|
execution_model = spv::ExecutionModel::Fragment;
|
||||||
|
if (ctx.profile.lower_left_origin_mode) {
|
||||||
|
ctx.AddExecutionMode(main, spv::ExecutionMode::OriginLowerLeft);
|
||||||
|
} else {
|
||||||
ctx.AddExecutionMode(main, spv::ExecutionMode::OriginUpperLeft);
|
ctx.AddExecutionMode(main, spv::ExecutionMode::OriginUpperLeft);
|
||||||
|
}
|
||||||
if (program.info.stores_frag_depth) {
|
if (program.info.stores_frag_depth) {
|
||||||
ctx.AddExecutionMode(main, spv::ExecutionMode::DepthReplacing);
|
ctx.AddExecutionMode(main, spv::ExecutionMode::DepthReplacing);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue