Crate crystal_api

Source
Expand description

§Crystal API

Crystal API is a unified wrapper for GPU APIs

Re-exports§

pub use settings::GraphicsApiInitSettings;

Modules§

errors
Errors module
mesh
Mesh module
object
Object module
settings
Settings module

Structs§

GpuSamplerSet
Used for textures bindings in shaders
Shader

Enums§

ShaderStage

Traits§

AsBytes
AsBytes represents a memory region as slice of bytes
Buffer
Used to store GPU data
GraphicsApi
GraphicsApi is the main trait used for creation of graphics resources and using this wrapper
Layout
Contains resources used to mapping GPU memory in shaders
Pipeline
Contains compiled shader stages and layout bindings info
RenderTarget
Contains resources used to rendering in them
Texture
Used to store data about texture in GPU

Functions§

init_api_instance_with_presentation
Creates api instance with presentation support