mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[valid] make sure textureSampleBias is only used in the fragment stage
This commit is contained in:
@@ -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