45 releases

Uses old Rust 2015

0.16.2 Aug 29, 2019
0.16.1 Apr 25, 2019
0.16.0 Feb 12, 2019
0.15.4 Dec 18, 2018
0.2.2 Mar 14, 2015

#326 in Graphics APIs

Download history 3103/week @ 2023-11-20 2091/week @ 2023-11-27 1901/week @ 2023-12-04 2615/week @ 2023-12-11 3186/week @ 2023-12-18 2081/week @ 2023-12-25 1456/week @ 2024-01-01 3030/week @ 2024-01-08 2735/week @ 2024-01-15 2558/week @ 2024-01-22 1717/week @ 2024-01-29 2481/week @ 2024-02-05 2880/week @ 2024-02-12 3199/week @ 2024-02-19 3288/week @ 2024-02-26 3432/week @ 2024-03-04

13,344 downloads per month
Used in 136 crates (40 directly)

Apache-2.0

355KB
7K SLoC

gfx_device_gl

OpenGL backend for gfx.

Normalized Coordinates

Render Depth Texture
render_coordinates depth_coordinates texture_coordinates

GLSL Mirroring

PSO component GLSL component
Vertex/InstanceBuffer a collection of vertex shader inputs
ConstantBuffer Uniform Buffer Object
Global Uniform
Render/BlendTarget fragment shader output
Depth/StencilTarget depth, stencil
UnorderedAccess TODO
Scissor not visible
BlendRef not visible

TextureSamplers correspond to the following GLSL samplers, when you see a g preceding a sampler name, it represents any of the 3 possible prefixes (nothing for float, i for signed integer, and u for unsigned integer):

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

Dependencies

~130–295KB