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

This commit is contained in:
teoxoy
2023-09-26 19:15:09 +02:00
committed by Teodor Tanasoaia
parent f72489be00
commit ee236e6c9b

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] {