40 releases

0.15.3 May 31, 2018
0.15.2 Mar 16, 2018
0.15.0 Dec 30, 2017
0.14.5 Nov 25, 2017
0.2.2 Mar 14, 2015

#7 in Graphics APIs

Download history 1022/week @ 2018-05-27 2004/week @ 2018-06-03 1924/week @ 2018-06-10 1636/week @ 2018-06-17 1108/week @ 2018-06-24 1915/week @ 2018-07-01 1238/week @ 2018-07-08 1374/week @ 2018-07-15 979/week @ 2018-07-22 1016/week @ 2018-07-29 1775/week @ 2018-08-05 1766/week @ 2018-08-12 1309/week @ 2018-08-19

6,074 downloads per month
Used in 73 crates (29 directly)

Apache-2.0

336KB
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

~1.5MB
~30K SLoC