mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
[valid] make sure textureSampleBias is only used in the fragment stage
This commit is contained in:
1 parent
f72489be00
commit
ee236e6c9b
1 file changed
+1
-1
@@ -492,7 +492,7 @@ impl super::Validator {
|
||||
} => {}
|
||||
_ => return Err(ExpressionError::InvalidSampleLevelBiasType(expr)),
|
||||
}
|
||||
ShaderStages::all()
|
||||
ShaderStages::FRAGMENT
|
||||
}
|
||||
crate::SampleLevel::Gradient { x, y } => {
|
||||
match resolver[x] {
|
||||
|
||||
Reference in new issue
Block a user