mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
Implement shader barycentrics (#8320)
This commit is contained in:
34 files changed
+422
-4
No files matched your search
@@ -510,6 +510,10 @@ pub fn create_validator(
|
||||
Caps::TEXTURE_EXTERNAL,
|
||||
features.intersects(wgt::Features::EXTERNAL_TEXTURE),
|
||||
);
|
||||
caps.set(
|
||||
Caps::SHADER_BARYCENTRICS,
|
||||
features.intersects(wgt::Features::SHADER_BARYCENTRICS),
|
||||
);
|
||||
|
||||
naga::valid::Validator::new(flags, caps)
|
||||
}
|
||||
Reference in new issue
Block a user