Package org.lwjgl.util.spvc
Class SpvcMslSamplerYcbcrConversion.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SpvcMslSamplerYcbcrConversion,SpvcMslSamplerYcbcrConversion.Buffer>
-
- org.lwjgl.util.spvc.SpvcMslSamplerYcbcrConversion.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<SpvcMslSamplerYcbcrConversion>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- SpvcMslSamplerYcbcrConversion
public static class SpvcMslSamplerYcbcrConversion.Buffer extends org.lwjgl.system.StructBuffer<SpvcMslSamplerYcbcrConversion,SpvcMslSamplerYcbcrConversion.Buffer> implements org.lwjgl.system.NativeResource
An array ofSpvcMslSamplerYcbcrConversionstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbpc()SpvcMslSamplerYcbcrConversion.Bufferbpc(int value)Sets the specified value to thebpcfield.intchroma_filter()SpvcMslSamplerYcbcrConversion.Bufferchroma_filter(int value)Sets the specified value to thechroma_filterfield.intplanes()SpvcMslSamplerYcbcrConversion.Bufferplanes(int value)Sets the specified value to theplanesfield.intresolution()SpvcMslSamplerYcbcrConversion.Bufferresolution(int value)Sets the specified value to theresolutionfield.java.nio.IntBufferswizzle()intswizzle(int index)SpvcMslSamplerYcbcrConversion.Bufferswizzle(int index, int value)Sets the specified value at the specified index of theswizzlefield.SpvcMslSamplerYcbcrConversion.Bufferswizzle(java.nio.IntBuffer value)Copies the specifiedIntBufferto theswizzlefield.intx_chroma_offset()SpvcMslSamplerYcbcrConversion.Bufferx_chroma_offset(int value)Sets the specified value to thex_chroma_offsetfield.inty_chroma_offset()SpvcMslSamplerYcbcrConversion.Buffery_chroma_offset(int value)Sets the specified value to they_chroma_offsetfield.intycbcr_model()SpvcMslSamplerYcbcrConversion.Bufferycbcr_model(int value)Sets the specified value to theycbcr_modelfield.intycbcr_range()SpvcMslSamplerYcbcrConversion.Bufferycbcr_range(int value)Sets the specified value to theycbcr_rangefield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSpvcMslSamplerYcbcrConversion.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 bySpvcMslSamplerYcbcrConversion.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
-
planes
public int planes()
- Returns:
- the value of the
planesfield.
-
resolution
public int resolution()
- Returns:
- the value of the
resolutionfield.
-
chroma_filter
public int chroma_filter()
- Returns:
- the value of the
chroma_filterfield.
-
x_chroma_offset
public int x_chroma_offset()
- Returns:
- the value of the
x_chroma_offsetfield.
-
y_chroma_offset
public int y_chroma_offset()
- Returns:
- the value of the
y_chroma_offsetfield.
-
swizzle
public java.nio.IntBuffer swizzle()
- Returns:
- a
IntBufferview of theswizzlefield.
-
swizzle
public int swizzle(int index)
- Returns:
- the value at the specified index of the
swizzlefield.
-
ycbcr_model
public int ycbcr_model()
- Returns:
- the value of the
ycbcr_modelfield.
-
ycbcr_range
public int ycbcr_range()
- Returns:
- the value of the
ycbcr_rangefield.
-
bpc
public int bpc()
- Returns:
- the value of the
bpcfield.
-
planes
public SpvcMslSamplerYcbcrConversion.Buffer planes(int value)
Sets the specified value to theplanesfield.
-
resolution
public SpvcMslSamplerYcbcrConversion.Buffer resolution(int value)
Sets the specified value to theresolutionfield.
-
chroma_filter
public SpvcMslSamplerYcbcrConversion.Buffer chroma_filter(int value)
Sets the specified value to thechroma_filterfield.
-
x_chroma_offset
public SpvcMslSamplerYcbcrConversion.Buffer x_chroma_offset(int value)
Sets the specified value to thex_chroma_offsetfield.
-
y_chroma_offset
public SpvcMslSamplerYcbcrConversion.Buffer y_chroma_offset(int value)
Sets the specified value to they_chroma_offsetfield.
-
swizzle
public SpvcMslSamplerYcbcrConversion.Buffer swizzle(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theswizzlefield.
-
swizzle
public SpvcMslSamplerYcbcrConversion.Buffer swizzle(int index, int value)
Sets the specified value at the specified index of theswizzlefield.
-
ycbcr_model
public SpvcMslSamplerYcbcrConversion.Buffer ycbcr_model(int value)
Sets the specified value to theycbcr_modelfield.
-
ycbcr_range
public SpvcMslSamplerYcbcrConversion.Buffer ycbcr_range(int value)
Sets the specified value to theycbcr_rangefield.
-
bpc
public SpvcMslSamplerYcbcrConversion.Buffer bpc(int value)
Sets the specified value to thebpcfield.
-
-