Skip to content

Commit

Permalink
Allow for implicit texture sampling from compute
Browse files Browse the repository at this point in the history
Allow for implicit texture sampling from compute since we support DerivativeGroupLinearNV (SPIRV-Tools issue KhronosGroup#5674)
  • Loading branch information
EpicJeanNoeMorissette authored May 17, 2024
1 parent b6e4584 commit 187ebec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/opt/replace_invalid_opc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ bool ReplaceInvalidOpcodePass::RewriteFunction(Function* function,

bool replace = false;
if (model != spv::ExecutionModel::Fragment &&
// UE Change Begin: Allow for implicit texture sampling from compute since we support DerivativeGroupLinearNV (SPIRV-Tools issue #5674)
model != spv::ExecutionModel::GLCompute &&
// UE Change End: Allow for implicit texture sampling from compute since we support DerivativeGroupLinearNV (SPIRV-Tools issue #5674)
IsFragmentShaderOnlyInstruction(inst)) {
replace = true;
}
Expand Down

0 comments on commit 187ebec

Please sign in to comment.