[−][src]Trait web_glitz::pipeline::resources::Resource
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
type Encoding
Associated Constants
const TYPE: ResourceSlotType
Required methods
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
Encodes a binding for this resource at the specified slot_index.
Implementors
impl<'a> Resource for FloatSampledTexture2D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for IntegerSampledTexture2D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for ShadowSampledTexture2D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for UnsignedIntegerSampledTexture2D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for FloatSampledTexture2DArray<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for IntegerSampledTexture2DArray<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for ShadowSampledTexture2DArray<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for UnsignedIntegerSampledTexture2DArray<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for FloatSampledTexture3D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for IntegerSampledTexture3D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for UnsignedIntegerSampledTexture3D<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for FloatSampledTextureCube<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for IntegerSampledTextureCube<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for ShadowSampledTextureCube<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a> Resource for UnsignedIntegerSampledTextureCube<'a>[src]
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a, T> Resource for &'a Buffer<T> where
T: InterfaceBlock, [src]
T: InterfaceBlock,
type Encoding = BufferView<'a, T>
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>
impl<'a, T> Resource for BufferView<'a, T> where
T: InterfaceBlock, [src]
T: InterfaceBlock,
type Encoding = Self
const TYPE: ResourceSlotType[src]
fn encode<E>(
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>[src]
self,
slot_index: u32,
encoder: BindGroupEncoder<'_, E>
) -> BindGroupEncoder<'_, (Self::Encoding, E)>