mirror of
https://github.com/doukutsu-rs/gfx.git
synced 2026-08-24 13:03:25 -07:00
Initial stub for mesh shaders to flesh out the API changes. Stub mesh shaders address some details DX12: remove mesh shaders from the indented block Improve the code based on review fix metal backend
gfx-backend-gl
OpenGL backend for gfx.
Normalized Coordinates
| Render | Depth | Texture |
|---|---|---|
![]() |
![]() |
![]() |
GLSL Mirroring
| Texture Kind | GLSL sampler |
|---|---|
D1 |
gsampler1D, sampler1DShadow |
D1Array |
gsampler1DArray, sampler1DArrayShadow |
D2 |
gsampler2D, gsampler2DMS, sampler2DShadow |
D2Array |
gsampler2DArray, gsampler2DMSArray, sampler2DArrayShadow |
D3 |
gsampler3D |
Cube |
gsamplerCube, samplerCubeShadow |
CubeArray |
gsamplerCubeArray, samplerCubeArrayShadow |
Buffer resource views are seen as gsamplerBuffer.
| Rust basic type | GLSL (1.3 and above) |
|---|---|
| i32 | int |
| u32 | uint |
| f32 | float |
| f64 | double |


