Module gfx_core::factory [] [src]

Resource factory.

Structs

Bind

Bind flags

BufferInfo

An information block that is immutable and associated with each buffer

Enums

BufferRole

Role of the memory buffer. GLES doesn't chaning bind points for buffers.

BufferUpdateError

An error happening on buffer updates.

BufferUsage

A hint as to how this buffer will be used.

CombinedError

An error from creating textures with views at the same time.

MapAccess

Specifies the access allowed to a buffer mapping.

ResourceViewError

Error creating either a ShaderResourceView, or UnorderedAccessView.

TargetViewError

Error creating either a RenderTargetView, or DepthStencilView.

Constants

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

Factory
Phantom

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.