From 4e0441563a49009a24916a0e4c6577532bf990a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Cegie=C5=82ka?= Date: Mon, 4 Mar 2024 05:40:48 +0100 Subject: [PATCH] Add limits for mesh shaders (#149) 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 --- shaderc-rs/src/lib.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/shaderc-rs/src/lib.rs b/shaderc-rs/src/lib.rs index 4aadc20..4935962 100644 --- a/shaderc-rs/src/lib.rs +++ b/shaderc-rs/src/lib.rs @@ -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.