Commit Graph
53 Commits
Author SHA1 Message Date
Branimir Karadžić cebc89b55d shaderc: Uniform array element count is 16-bit. Closes #3226. (#4104) 2026-10-28 21:32:46 -07:00
Branimir Karadžić 09997c0805 shaderc: Raised default Metal profile to MSL 3.0, removed profiles older than MSL 2.0. Closes #2792. (#4075) 2026-10-20 22:26:03 -07:00
Branimir Karadžić 1845ed5d8e shaderc: Fixed implicit global uniform check missing Metal and non-vec4 globals. Closes #3592. (#4071) 2026-10-21 00:59:13 +00:00
Branimir Karadžić fa2d4b56f3 Fixed ImGui text input, and other trivial issues. (#4058) 2026-10-16 23:32:59 +00:00
Branimir Karadžić ec6e934a2d Sampled MSAA depth reads sample 0 through ordinary samplers. (#4046) 2026-10-12 16:49:19 -07:00
Branimir Karadžić aa10f3accb Added BGFX_CAPS_SHADER_F16. (#4023) 2026-10-03 23:27:25 -07:00
Branimir Karadžić 6e6c062e1f Closed the gaps between the GLSL and HLSL halves of bgfx_shader.sh. (#3983) 2026-09-16 04:30:06 +00:00
Branimir Karadžić bd85653546 Added cube array samplers. (#3979) 2026-09-14 00:54:40 +00:00
Branimir Karadžić 2e51cb6aa9 Added depth control, sample mask, and read-only depth/stencil attachments. (#3971) 2026-09-11 05:22:53 +00:00
Branimir Karadžić dd961560d5 Raw buffers (#3920)
* Added raw compute buffers, resource type/dimension now comes from shader reflection. Bumped shader version to 12.

* Rebuild internal embedded shaders.

* Updated bindings.

* Rebuild embedded shaders.

* Rebuilt shaders.

* Updated bindings.
2026-08-22 20:03:12 -07:00
Branimir Karadžić a4555482f9 Increased number of texcoord attributes, increased instance data, added int32/uint32 vertex attributes. (#3832) 2026-07-14 05:15:13 +00:00
Jason Millard f9cbe0898c Metal: Set input primitive topology and only add point_size when needed. (#3803) 2026-06-30 13:16:12 -07:00
Branimir Karadžić 65f9425d8c Updated to new SIMD. (#3699) 2026-05-03 18:51:10 +00:00
Martijn Courteaux b03bd2d698 [shaderc] Make SPIRV, HLSL, DXIL, Metal backends optional to allow for leaner builds. (#3594)
* Make SPIRV, HLSL, DXIL, Metal backends optional to allow for leaner builds.

* New and automatic detection of available compilers to enable backends.

* Forgot to fixup Metal.

* Cleanup. Check for glsl-optimizer likewise.
2026-02-19 01:43:03 +00:00
Branimir Karadžić 4baed6e076 Happy New Year! (#3550) 2026-01-14 16:26:51 +00:00
Бранимир Караџић 39dc313347 shaderc: Pass interpolator qualifiers into all stages. 2026-01-02 08:40:56 -08:00
Бранимир Караџић a569829d50 Fixed shaderc. 2025-10-21 19:23:52 -07:00
Бранимир Караџић 5cb08f414f Updated shaderc. 2025-05-10 19:57:30 -07:00
Бранимир Караџић 860bafb23f Happy New Year! 2025-01-13 15:45:40 -08:00
Бранимир Караџић 042ebe8814 Cleanup. 2024-12-07 22:49:45 -08:00
Бранимир Караџић f6baa4bdaf shaderc: Show correct error line. 2024-11-25 19:39:17 -08:00
pheonix 56ad576dcd [shaderc] Clean up (#3258)
* Add Metal Shading Language version options to shaderc. Reference version options from: https://developer.apple.com/documentation/metal/mtllanguageversion?language=objc
Add configuration options for MSL compiler based on MSL version and Platform
Configure MSL->SPIR-V version configuration based on when ray tracing types become available
Set default metal compiler option to be metal 1.2, which is the default version assigned in the current SPIRV-Cross being used

* Add Metal Shading Language version options to shaderc. Reference version options from: https://developer.apple.com/documentation/metal/mtllanguageversion?language=objc
Add configuration options for MSL compiler based on MSL version and Platform
Configure MSL->SPIR-V version configuration based on when ray tracing types become available
Set default metal compiler option to be metal 1.2, which is the default version assigned in the current SPIRV-Cross being used

* Group ios and osx platform code paths
Reduce the size of temp buffer used in writing the MSL preprocessor define
Fix a compiler warning about size_t to int32_t truncation
Adjust whitespace in usage text

* Remove indented scope left-over from branch condition removal

* Remove some testing code

* Adjust whitespace for function arguments

* Replace BX_ASSERT with bx::write to message handler in spirv generation
2024-02-27 07:32:52 -08:00
pheonix c00e4395b0 Add Metal Shading Language version options to shaderc. Reference version options from: https://developer.apple.com/documentation/metal/mtllanguageversion?language=objc (#3213)
Add configuration options for MSL compiler based on MSL version and Platform
Configure MSL->SPIR-V version configuration based on when ray tracing types become available
Set default metal compiler option to be metal 1.2, which is the default version assigned in the current SPIRV-Cross being used
2024-02-26 23:08:51 -08:00
Бранимир Караџић 83dfadf673 Happy New Year! 2024-01-14 01:56:36 -08:00
Бранимир Караџић 0c8292f2af Updated glslang. 2023-11-27 22:27:59 -08:00
Edu Garcia b01c5d597a Enable debug information for Vulkan shaders (#3193)
* Enable debug information for Vulkan shaders

* Enable debug information for Metal shaders
2023-11-06 11:14:29 -08:00
Бранимир Караџић 6dd8edc4b1 Cleanup. 2023-04-12 19:25:14 -07:00
rnbhatt fda8a3705f Fix for #2822 -- points rendering error on Apple silicon (#3079)
* Add pointsize to SPIRV-Cross output before writing

Adds 
float bgfx_metal_pointSize [[point_size]] = 1;
to xlatMtlMain_out, ensuring that it always has a value.

* Update shaderc_metal.cpp

Only apply patch to vertex shaders
2023-04-12 10:16:58 -07:00
Jorge Rodriguez 70ac58fd38 Write messages to a stream specified by the caller of compilerShader … (#3054)
* Write messages to a stream specified by the caller of compilerShader rather than directly to stdOut, to allow tool writers to easily capture it.

* PR updates

* Missed a write

* PR updates
2023-03-06 10:30:06 -08:00
Бранимир Караџић 466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
Бранимир Караџић 24c5c2f096 shaderc: Updated to new glslang. 2022-10-02 23:18:33 -07:00
Бранимир Караџић 4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
Бранимир Караџић bacb073bc8 Cleanup. 2021-12-07 09:10:27 -08:00
Aleš MlakarandAleš Mlakar 130bc00608 shaderc: Ignore .@data uniforms when compiling for metal (#2677)
Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
2021-12-06 09:39:05 -08:00
Raziel AlphadiosandRaziel Alphadios 094d34194c Cleanup: change POD casts from static_cast to functional/ctor casts, for consistency (#2648)
Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2021-10-31 15:54:10 -07:00
Branimir Karadžić 4763f97205 More fixes. 2021-10-25 19:26:38 -07:00
Бранимир Караџић 8392a44b3a Fixed assert macros, and improved error handling. 2021-10-25 18:59:32 -07:00
Hugo Amnov 07e9af249c Cleanup old debug and Metal code in SPIRV shaderc paths (#2484)
* Shaderc: Remove unused MTL path in SPIRV compiler

* Shaderc: Remove unused SPIRV reflection code
2021-04-21 07:45:03 -07:00
Hugo Amnov 24be4a38d0 WebGPU: Add texture format to shaderc (bin version 10) + streamline storage Images in shaders (#2482)
* WebGPU: Add texture format (shaderc bin version 10)

* WebGPU: Simplify storage images + Fix format decorations

* Shaderc: Cleanup Texture name assumption in textures
2021-04-20 20:18:49 -07:00
pheonix d89ff312a7 Fix leak - using no fancy smanshy new age voodoo (#2390) 2021-02-11 21:43:22 -08:00
Бранимир Караџић af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
pheonix e541312851 Update g_verbose SpirvToolsDisassemble to output based on spirv target env for Metal and SPIRV. (#2306)
Fix up alignment in shaderc help string.
2020-11-08 10:57:03 -08:00
Martijn Courteaux 1ca9f894d1 Fix uniform stripping procedure for unexpected newlines in Metal shaderc. (#2223) 2020-08-16 21:08:01 -07:00
Бранимир Караџић a95ddd1c0c Reemoved use of old LineReader. 2020-06-20 15:14:54 -07:00
Бранимир Караџић d86c16213e Cleanup. 2020-06-18 21:20:01 -07:00
Hugo Amnov b62302631e Add Webgpu backend (#2132)
* WebGPU first draft (shaderc bin version 8)

* WebGPU scripts
2020-05-08 08:53:53 -07:00
Бранимир Караџић 7f7c8a9bc0 Updated glslang. 2020-05-04 21:14:04 -07:00
Бранимир Караџић 82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Бранимир Караџић 35abd01cfb Fixed warnings. 2019-10-05 09:52:04 -07:00
attilaz 3a6f9ff5b0 Fixed isampler and usampler for metal/spirv (#1903) 2019-10-04 20:03:27 -07:00