[valid] make sure textureSampleBias is only used in the fragment stage

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2023-09-28 20:33:11 +02:00
1 parent f72489be00
commit ee236e6c9b
1 file changed
+1 -1
+1 -1
View File
@@ -492,7 +492,7 @@ impl super::Validator {
} => {}
_ => return Err(ExpressionError::InvalidSampleLevelBiasType(expr)),
}
ShaderStages::all()
ShaderStages::FRAGMENT
}
crate::SampleLevel::Gradient { x, y } => {
match resolver[x] {