Package org.lwjgl.util.spvc
Class SpvcHLSLResourceBinding.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SpvcHLSLResourceBinding,SpvcHLSLResourceBinding.Buffer>
-
- org.lwjgl.util.spvc.SpvcHLSLResourceBinding.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<SpvcHLSLResourceBinding>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- SpvcHLSLResourceBinding
public static class SpvcHLSLResourceBinding.Buffer extends org.lwjgl.system.StructBuffer<SpvcHLSLResourceBinding,SpvcHLSLResourceBinding.Buffer> implements org.lwjgl.system.NativeResource
An array ofSpvcHLSLResourceBindingstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSpvcHLSLResourceBinding.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided bySpvcHLSLResourceBinding.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
stage
public int stage()
- Returns:
- the value of the
stagefield.
-
desc_set
public int desc_set()
- Returns:
- the value of the
desc_setfield.
-
binding
public int binding()
- Returns:
- the value of the
bindingfield.
-
cbv
public SpvcHLSLResourceBindingMapping cbv()
- Returns:
- a
SpvcHLSLResourceBindingMappingview of thecbvfield.
-
uav
public SpvcHLSLResourceBindingMapping uav()
- Returns:
- a
SpvcHLSLResourceBindingMappingview of theuavfield.
-
srv
public SpvcHLSLResourceBindingMapping srv()
- Returns:
- a
SpvcHLSLResourceBindingMappingview of thesrvfield.
-
sampler
public SpvcHLSLResourceBindingMapping sampler()
- Returns:
- a
SpvcHLSLResourceBindingMappingview of thesamplerfield.
-
stage
public SpvcHLSLResourceBinding.Buffer stage(int value)
Sets the specified value to thestagefield.
-
desc_set
public SpvcHLSLResourceBinding.Buffer desc_set(int value)
Sets the specified value to thedesc_setfield.
-
binding
public SpvcHLSLResourceBinding.Buffer binding(int value)
Sets the specified value to thebindingfield.
-
cbv
public SpvcHLSLResourceBinding.Buffer cbv(SpvcHLSLResourceBindingMapping value)
Copies the specifiedSpvcHLSLResourceBindingMappingto thecbvfield.
-
cbv
public SpvcHLSLResourceBinding.Buffer cbv(java.util.function.Consumer<SpvcHLSLResourceBindingMapping> consumer)
Passes thecbvfield to the specifiedConsumer.
-
uav
public SpvcHLSLResourceBinding.Buffer uav(SpvcHLSLResourceBindingMapping value)
Copies the specifiedSpvcHLSLResourceBindingMappingto theuavfield.
-
uav
public SpvcHLSLResourceBinding.Buffer uav(java.util.function.Consumer<SpvcHLSLResourceBindingMapping> consumer)
Passes theuavfield to the specifiedConsumer.
-
srv
public SpvcHLSLResourceBinding.Buffer srv(SpvcHLSLResourceBindingMapping value)
Copies the specifiedSpvcHLSLResourceBindingMappingto thesrvfield.
-
srv
public SpvcHLSLResourceBinding.Buffer srv(java.util.function.Consumer<SpvcHLSLResourceBindingMapping> consumer)
Passes thesrvfield to the specifiedConsumer.
-
sampler
public SpvcHLSLResourceBinding.Buffer sampler(SpvcHLSLResourceBindingMapping value)
Copies the specifiedSpvcHLSLResourceBindingMappingto thesamplerfield.
-
sampler
public SpvcHLSLResourceBinding.Buffer sampler(java.util.function.Consumer<SpvcHLSLResourceBindingMapping> consumer)
Passes thesamplerfield to the specifiedConsumer.
-
-