[][src]Trait web_glitz::pipeline::resources::Resource

pub unsafe trait Resource {
    type Encoding;

    const TYPE: ResourceSlotType;

    fn encode<E>(
        self,
        slot_index: u32,
        encoder: BindGroupEncoder<'_, E>
    ) -> BindGroupEncoder<'_, (Self::Encoding, E)>; }

Trait implemented for types that can be bound to a pipeline as a resource.

When automatically deriving the Resources trait, fields marked with #[resource(...)] must implement this trait.

Associated Types

Loading content...

Associated Constants

Loading content...

Required methods

fn encode<E>(
    self,
    slot_index: u32,
    encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>

Encodes a binding for this resource at the specified slot_index.

Loading content...

Implementors

impl<'a> Resource for FloatSampledTexture2D<'a>[src]

type Encoding = Self

impl<'a> Resource for IntegerSampledTexture2D<'a>[src]

type Encoding = Self

impl<'a> Resource for ShadowSampledTexture2D<'a>[src]

type Encoding = Self

impl<'a> Resource for UnsignedIntegerSampledTexture2D<'a>[src]

type Encoding = Self

impl<'a> Resource for FloatSampledTexture2DArray<'a>[src]

type Encoding = Self

impl<'a> Resource for IntegerSampledTexture2DArray<'a>[src]

type Encoding = Self

impl<'a> Resource for ShadowSampledTexture2DArray<'a>[src]

type Encoding = Self

impl<'a> Resource for UnsignedIntegerSampledTexture2DArray<'a>[src]

type Encoding = Self

impl<'a> Resource for FloatSampledTexture3D<'a>[src]

type Encoding = Self

impl<'a> Resource for IntegerSampledTexture3D<'a>[src]

type Encoding = Self

impl<'a> Resource for UnsignedIntegerSampledTexture3D<'a>[src]

type Encoding = Self

impl<'a> Resource for FloatSampledTextureCube<'a>[src]

type Encoding = Self

impl<'a> Resource for IntegerSampledTextureCube<'a>[src]

type Encoding = Self

impl<'a> Resource for ShadowSampledTextureCube<'a>[src]

type Encoding = Self

impl<'a> Resource for UnsignedIntegerSampledTextureCube<'a>[src]

type Encoding = Self

impl<'a, T> Resource for &'a Buffer<T> where
    T: InterfaceBlock
[src]

type Encoding = BufferView<'a, T>

impl<'a, T> Resource for BufferView<'a, T> where
    T: InterfaceBlock
[src]

type Encoding = Self

Loading content...