You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disallow implicit LOD texture methods in Compute shaders. #1221
error: line 61: OpEntryPoint Entry Point <id> '20[%main]'s callgraph contains function <id> 20[%main], which cannot be used with the current execution modes:
ImplicitLod instructions require DerivativeGroupQuadsNV or DerivativeGroupLinearNV execution mode for GLCompute execution model: ImageSampleImplicitLod
Given the extra capabilities required, I think we should disallow the use of the implicit LOD texture methods in compute shaders.
Closing. The spec has restrictions that texture builtins with implicit LOD and derivative functions must only be called in fragment shaders and with uniform control flow.
Activity
dj2 commentedon Nov 13, 2020
@dneto0 @ben-clayton
pow2clk commentedon Nov 17, 2020
HLSL has similar limitations. I had assumed that this was already disallowed.
kvark commentedon Nov 20, 2020
Implicit LOD should only be allowed in fragment shaders.
I.e. vertex shaders are also in the same group as compute.
Kangz commentedon Nov 16, 2021
Closing. The spec has restrictions that texture builtins with implicit LOD and derivative functions must only be called in fragment shaders and with uniform control flow.
wgsl: Stub acosh builtin tests. (gpuweb#1312)
Implement `acosh` f32 tests (gpuweb#1737)