Package org.lwjgl.util.spvc
Class SpvcMslSamplerYcbcrConversion.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SpvcMslSamplerYcbcrConversion.Buffer>
org.lwjgl.system.StructBuffer<SpvcMslSamplerYcbcrConversion,SpvcMslSamplerYcbcrConversion.Buffer>
org.lwjgl.util.spvc.SpvcMslSamplerYcbcrConversion.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SpvcMslSamplerYcbcrConversion>,NativeResource,Pointer
- Enclosing class:
SpvcMslSamplerYcbcrConversion
public static class SpvcMslSamplerYcbcrConversion.Buffer
extends StructBuffer<SpvcMslSamplerYcbcrConversion,SpvcMslSamplerYcbcrConversion.Buffer>
implements NativeResource
An array of
SpvcMslSamplerYcbcrConversion structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newSpvcMslSamplerYcbcrConversion.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintbpc()bpc(int value) Sets the specified value to thebpcfield.intchroma_filter(int value) Sets the specified value to thechroma_filterfield.intplanes()planes(int value) Sets the specified value to theplanesfield.intresolution(int value) Sets the specified value to theresolutionfield.swizzle()intswizzle(int index) swizzle(int index, int value) Sets the specified value at the specified index of theswizzlefield.Copies the specifiedIntBufferto theswizzlefield.intx_chroma_offset(int value) Sets the specified value to thex_chroma_offsetfield.inty_chroma_offset(int value) Sets the specified value to they_chroma_offsetfield.intycbcr_model(int value) Sets the specified value to theycbcr_modelfield.intycbcr_range(int value) Sets the specified value to theycbcr_rangefield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
SpvcMslSamplerYcbcrConversion.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 Details
-
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
- 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
Sets the specified value to theplanesfield. -
resolution
Sets the specified value to theresolutionfield. -
chroma_filter
Sets the specified value to thechroma_filterfield. -
x_chroma_offset
Sets the specified value to thex_chroma_offsetfield. -
y_chroma_offset
Sets the specified value to they_chroma_offsetfield. -
swizzle
Copies the specifiedIntBufferto theswizzlefield. -
swizzle
Sets the specified value at the specified index of theswizzlefield. -
ycbcr_model
Sets the specified value to theycbcr_modelfield. -
ycbcr_range
Sets the specified value to theycbcr_rangefield. -
bpc
Sets the specified value to thebpcfield.
-