Crate shadiertoy[][src]

A Shadertoy rip-off.

There are examples in the repository.

Re-exports

pub extern crate gfx;
pub extern crate glutin;
pub extern crate image;

Macros

pipeline

Define the format of the data you're passing to the shader.

Structs

Global

Global (uniform) constant component. Describes a free-standing value passed into the shader, which is not enclosed into any constant buffer.

TextureSampler

A convenience type for a texture paired with a sampler. It only makes sense for DX9 class hardware, where every texture by default is bundled with a sampler, hence they are represented by the same name. In DX10 and higher samplers are totally separated from the textures.

Window

A window that you can draw on.

Enums

Error

Crate error type.

Traits

Game

A game, which is hopefully what you're making.

Type Definitions

DepthStencilView

A depth-stencil buffer handle.

DepthTarget

A link type for the depth buffer.

R

The gfx-rs resource used in this crate.

RenderTarget

A link type for the color buffer.

RenderTargetView

A color buffer handle.

Result

Crate result type.

Shader

A compiled shader.

ShaderResourceView

A texture handle.

Texture

A loaded texture.