public readonly record struct EffectBindingWhere one of a shader's resources sits, by the name the shader gave it.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The half of the reflection that never reached the runtime. An effect carried its parameter offsets from the day it was written and not its binding indices, so everything that had to fill a descriptor set — a compositor node, a material, a per-view block — was handed a number by whoever configured it.
That number is the shader's decision: Raven assigns it from declaration order within a set, so adding a texture above another renumbers everything below it. Generated constants fix it for code that can reference generated code, and fix nothing for a compositor document naming a resource or a shader loaded from a bundle at run time. This is what those need.
Fields and properties (6)
public string NameThe shader's own name for it — source, sourceSampler.
public DescriptorSetSlot SetWhich of the four conventional sets holds it.
public uint BindingIts index within that set.
public DescriptorKind KindWhat it binds.
public int SizeHow many bytes the block is, for a uniform or storage binding; 0 for a resource.
public int CountHow many descriptors the binding holds; one for all but an array binding.
Methods (1)
public EffectBinding(string Name, DescriptorSetSlot Set, uint Binding, DescriptorKind Kind)Where one of a shader's resources sits, by the name the shader gave it.
Used by (31)
- AlwaysCompilesVixen.Rendering.Tests
- AlwaysCompilesVixen.Rendering.Tests
- BindlessFrameTestsVixen.Rendering.Tests
- BindlessSamplingDeviceTestsVixen.Graphics.Golden.Tests
- BufferTransferDeviceTestsVixen.Graphics.Golden.Tests
- ClusterCullingDeviceTestsVixen.Graphics.Golden.Tests
- ClusteredLightingTestsVixen.Rendering.Tests
- ClusteredShadingDeviceTestsVixen.Graphics.Golden.Tests
- CompilesVixen.Rendering.Tests
- CompilesVixen.Rendering.Tests
- CompilesVixen.Rendering.Tests
- EffectVixen.Shaders
- EffectCacheTestsVixen.Shaders.Tests
- EffectLoaderVixen.Shaders
- EffectSetWriterVixen.Rendering
- ForwardFrameTestsVixen.Rendering.Tests
- ForwardLightingRenderFeatureVixen.Rendering
- IrradianceFieldFillVixen.Rendering
- IrradianceFieldRepairVixen.Rendering
- MaterialBindingTestsVixen.Rendering.Tests
- ReflectionTraceFillVixen.Rendering
- ResourceBindingVixen.Rendering
- SceneLightingVixen.Rendering
- SceneLightingTestsVixen.Rendering.Tests
- ScreenProbeAccumulateFillVixen.Rendering
- ScreenProbeFilterFillVixen.Rendering
- ScreenProbeResolveVixen.Rendering
- ScreenProbeTraceFillVixen.Rendering
- SurfaceCacheGatherFillVixen.Rendering
- SurfaceCacheLightFillVixen.Rendering
- ViewCullingDeviceTestsVixen.Graphics.Golden.Tests