Crate gfx [−] [src]
An efficient, low-level, bindless graphics API for Rust. See the blog for explanations and annotated examples.
Re-exports
pub use draw_state::target::*; |
pub use pso::PipelineState; |
pub use pso::buffer::VertexBuffer; |
pub use pso::buffer::InstanceBuffer; |
pub use pso::buffer::RawVertexBuffer; |
pub use pso::buffer::RawConstantBuffer; |
pub use pso::buffer::ConstantBuffer; |
pub use pso::buffer::Global; |
pub use pso::resource::ShaderResource; |
pub use pso::resource::RawShaderResource; |
pub use pso::resource::UnorderedAccess; |
pub use pso::resource::Sampler; |
pub use pso::resource::TextureSampler; |
pub use pso::target::DepthStencilTarget; |
pub use pso::target::DepthTarget; |
pub use pso::target::StencilTarget; |
pub use pso::target::RenderTarget; |
pub use pso::target::RawRenderTarget; |
pub use pso::target::BlendTarget; |
pub use pso::target::BlendRef; |
pub use pso::target::Scissor; |
pub use pso::bundle::Bundle; |
Modules
| format |
Universal format specification. Applicable to textures, views, and vertex buffers. |
| handle |
Device resource handles |
| macros |
Convenience macros Various helper macros. |
| preset |
State presets |
| pso |
A typed high-level graphics pipeline interface. |
| shade |
Shaders Shader parameter handling. |
| state |
Fixed-function hardware state. |
| tex |
Texture creation and modification. |
| traits |
public re-exported traits |
Macros
| gfx_constant_struct | |
| gfx_defines |
Defines vertex, constant and pipeline formats in one block |
| gfx_format | |
| gfx_impl_struct | |
| gfx_pipeline | |
| gfx_pipeline_base | |
| gfx_pipeline_inner | |
| gfx_vertex_struct |
Structs
| Bind |
Bind flags |
| BufferInfo |
An information block that is immutable and associated with each buffer. |
| DomainShader | |
| Encoder |
Graphics Command Encoder |
| GeometryShader | |
| HullShader | |
| PixelShader | |
| ProgramInfo |
Metadata about a program. |
| Slice |
A |
| VertexShader |
Enums
| BufferError |
Error creating a buffer. |
| BufferRole |
Role of the memory buffer. GLES doesn't allow chaning bind points for buffers. |
| BufferUpdateError |
An error happening on buffer updates. |
| CombinedError |
An error from creating textures with views at the same time. |
| IndexBuffer |
Type of index-buffer used in a Slice. |
| MapAccess |
Specifies the access allowed to a buffer mapping. |
| PipelineStateError |
Error creating a PipelineState |
| Primitive |
Describes what geometric primitives are created from vertex data. |
| ResourceViewError |
Error creating either a ShaderResourceView, or UnorderedAccessView. |
| ShaderSet |
A complete set of shaders to link a program. |
| TargetViewError |
Error creating either a RenderTargetView, or DepthStencilView. |
| UniformValue |
A value that can be uploaded to the device as a uniform. |
| UpdateError |
An error occuring in buffer/texture updates. |
| Usage |
A hint as to how this buffer/texture will be used. |
Constants
| DEPTH_STENCIL |
The resource can serve as a depth/stencil target. |
| RENDER_TARGET |
The resource can be rendered into. |
| SHADER_RESOURCE |
The resource can be bound to the shader for reading. |
| UNORDERED_ACCESS |
The resource can be bound to the shader for writing. |
Traits
| CommandBuffer |
An interface of the abstract command buffer. It collects commands in an efficient API-specific manner, to be ready for execution on the device. |
| Device |
A |
| Factory |
A |
| IntoIndexBuffer |
A helper trait to create |
| Resources |
Different types of a specific API. |
| Typed |
A service trait used to get the raw data out of strong types. Not meant for public use. |
Functions
| cast_slice |
Cast a slice from one POD type to another. |
Type Definitions
| InstanceCount |
Draw number of instances |
| InstanceOption |
Optional instance parameters |
| VertexCount |
Draw vertex count. |