pub trait ShaderValuewhere
    Self: Sized,{
    const UNIFORM_TYPE: ShaderUniformDataType;

    // Provided method
    unsafe fn raw_value(&self) -> *const c_void { ... }
}
Expand description

Shader uniform value You shouldn’t need to implement this trait yourself.

Required Associated Constants§

source

const UNIFORM_TYPE: ShaderUniformDataType

Uniform type assiciated with the value

Provided Methods§

source

unsafe fn raw_value(&self) -> *const c_void

Get the value as a void*

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ShaderValue for f32

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Float

source§

impl ShaderValue for i32

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Int

source§

impl ShaderValue for Vector2<i32>

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::IVec2

source§

impl ShaderValue for Vector3<i32>

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::IVec3

source§

impl ShaderValue for Vector4<i32>

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::IVec4

Implementors§

source§

impl ShaderValue for rust_raylib::math::Vector2

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec2

source§

impl ShaderValue for rust_raylib::math::Vector3

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec3

source§

impl ShaderValue for rust_raylib::math::Vector4

source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec4