Skip to content

Commit

Permalink
Add limits for mesh shaders (#149)
Browse files Browse the repository at this point in the history
Added newer Limit enum variants to support
working with mesh shaders, following the
original C header and Rust API guidelines.

https://github.com/google/shaderc/blob/65fa097f2f0aae1a9c233bcf7d03ca3dcd296c6e/libshaderc/include/shaderc/shaderc.h#L192-L210
  • Loading branch information
unneon authored Mar 4, 2024
1 parent 6e621ad commit 4e04415
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions shaderc-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,25 @@ pub enum Limit {
MaxCullDistances,
MaxCombinedClipAndCullDistances,
MaxSamples,
MaxMeshOutputVerticesNv,
MaxMeshOutputPrimitivesNv,
MaxMeshWorkGroupSizeXNv,
MaxMeshWorkGroupSizeYNv,
MaxMeshWorkGroupSizeZNv,
MaxTaskWorkGroupSizeXNv,
MaxTaskWorkGroupSizeYNv,
MaxTaskWorkGroupSizeZNv,
MaxMeshViewCountNv,
MaxMeshOutputVerticesExt,
MaxMeshOutputPrimitivesExt,
MaxMeshWorkGroupSizeXExt,
MaxMeshWorkGroupSizeYExt,
MaxMeshWorkGroupSizeZExt,
MaxTaskWorkGroupSizeXExt,
MaxTaskWorkGroupSizeYExt,
MaxTaskWorkGroupSizeZExt,
MaxMeshViewCountExt,
MaxDualSourceDrawBuffersExt,
}

/// An opaque object managing all compiler states.
Expand Down

0 comments on commit 4e04415

Please sign in to comment.