pub unsafe trait PipelineTexture<D, P>: PipelineBase + Texture<D, P> where
D: Dimensionable,
P: Pixel, {
type BoundTextureRepr;
unsafe fn bind_texture(
pipeline: &Self::PipelineRepr,
texture: &Self::TextureRepr
) -> Result<Self::BoundTextureRepr, PipelineError>
where
D: Dimensionable,
P: Pixel;
unsafe fn texture_binding(bound: &Self::BoundTextureRepr) -> u32;
}
Expand description
Operations that can be run on pipelines and textures.
This trait requires PipelineBase
and Texture
.
Required Associated Types
Representation of a bound Texture
on the backend.
Required Methods
unsafe fn bind_texture(
pipeline: &Self::PipelineRepr,
texture: &Self::TextureRepr
) -> Result<Self::BoundTextureRepr, PipelineError> where
D: Dimensionable,
P: Pixel,
unsafe fn bind_texture(
pipeline: &Self::PipelineRepr,
texture: &Self::TextureRepr
) -> Result<Self::BoundTextureRepr, PipelineError> where
D: Dimensionable,
P: Pixel,
unsafe fn texture_binding(bound: &Self::BoundTextureRepr) -> u32
unsafe fn texture_binding(bound: &Self::BoundTextureRepr) -> u32
Get the u32
representation of the bound texture, also known as binding.