public static class EffectSetWriterTurns named values into the writes one of a shader's descriptor sets wants.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
One place, because there are now two callers and the rule they share is the whole point: a caller says what a resource is called and Bindings says where it goes. A material names albedo; a frame names environment; neither writes down a binding index, which is the shader's to assign and to renumber when a texture is added above it.
The name is qualified by the shader. That is how the generator interns it — ForwardPlusKeys.Environment is "ForwardPlus.environment" — while the shader's own name for the binding is bare. Bridging those two is the entire job, and it is one line that would otherwise be written once per caller.
Methods (3)
public static bool TryWrite(Effect effect, DescriptorSetSlot slot, ParameterCollection parameters, EffectConstants? block, IList<DescriptorWrite> writes)Fills for one set, and answers whether every binding was satisfied.
public static bool TryWrite(Effect effect, DescriptorSetSlot slot, ParameterCollection parameters, EffectConstants? block, IList<DescriptorWrite> writes, out string? missing)The same, and the name of the first binding nothing filled when it fails.
public static bool TryWrite(Effect effect, DescriptorSetSlot slot, ParameterCollection parameters, ParameterCollection? fallback, EffectConstants? block, IList<DescriptorWrite> writes, out string? missing)The same, with a second collection consulted for anything the first does not have.
Used by (10)
- BinVixen.Rendering
- BindlessFrameTestsVixen.Rendering.Tests
- IrradianceFieldFillVixen.Rendering
- MaterialRenderFeatureVixen.Rendering
- ReflectionTraceFillVixen.Rendering
- SceneConstantsVixen.Rendering
- SceneLightingTestsVixen.Rendering.Tests
- ScreenProbeTraceFillVixen.Rendering
- SurfaceCacheGatherFillVixen.Rendering
- SurfaceCacheLightFillVixen.Rendering