#[repr(C)]pub struct IRDescriptorTableEntry {
pub gpuVA: u64,
pub textureViewID: u64,
pub metadata: u64,
}Fields§
§gpuVA: u64§textureViewID: u64§metadata: u64Implementations§
Source§impl IRDescriptorTableEntry
impl IRDescriptorTableEntry
Sourcepub fn buffer(gpu_address: u64, metadata: u64) -> Self
pub fn buffer(gpu_address: u64, metadata: u64) -> Self
Encode a buffer descriptor.
This function is a port of the IRDescriptorTableSetBuffer function in the metal_irconverter_runtime.h header.
See https://developer.apple.com/metal/shader-converter/ for more info.
Sourcepub fn buffer_view(buffer_view: &BufferView<'_>) -> Self
pub fn buffer_view(buffer_view: &BufferView<'_>) -> Self
Encode a buffer view descriptor.
This function is a port of the IRDescriptorTableSetBufferView function in the metal_irconverter_runtime.h header.
See https://developer.apple.com/metal/shader-converter/ for more info.
Sourcepub fn texture(
argument: &ProtocolObject<dyn MTLTexture>,
min_lod_clamp: f32,
) -> Self
pub fn texture( argument: &ProtocolObject<dyn MTLTexture>, min_lod_clamp: f32, ) -> Self
Encode a texture in this descriptor.
This function is a port of the IRDescriptorTableSetTexture function in the metal_irconverter_runtime.h header.
See https://developer.apple.com/metal/shader-converter/ for more info.
Sourcepub fn sampler(
argument: &ProtocolObject<dyn MTLSamplerState>,
lod_bias: f32,
) -> Self
pub fn sampler( argument: &ProtocolObject<dyn MTLSamplerState>, lod_bias: f32, ) -> Self
Encode a sampler in this descriptor.
This function is a port of the IRDescriptorTableSetSampler function in the metal_irconverter_runtime.h header.
See https://developer.apple.com/metal/shader-converter/ for more info.
Sourcepub fn acceleration_structure(gpu_address: u64) -> Self
pub fn acceleration_structure(gpu_address: u64) -> Self
Encode an acceleration structure in this descriptor.
This function is a port of the IRDescriptorTableSetAccelerationStructure function in the ir_raytracing.h header.
See https://developer.apple.com/metal/shader-converter/ for more info.
Sourcepub fn buffer_metadata(view: &BufferView<'_>) -> u64
pub fn buffer_metadata(view: &BufferView<'_>) -> u64
Get the metadata value for a buffer view.
This function is a port of the IRDescriptorTableGetBufferMetadata function in the metal_irconverter_runtime.h header.
See https://developer.apple.com/metal/shader-converter/ for more info.
Trait Implementations§
Source§impl Clone for IRDescriptorTableEntry
impl Clone for IRDescriptorTableEntry
Source§fn clone(&self) -> IRDescriptorTableEntry
fn clone(&self) -> IRDescriptorTableEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more