Package org.lwjgl.util.spvc
Class SpvcHlslVertexAttributeRemap
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcHlslVertexAttributeRemap
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcHlslVertexAttributeRemap extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInterface which remaps vertex inputs to a fixed semantic name to make linking easier.Layout
struct spvc_hlsl_vertex_attribute_remap { unsigned int location; char const * semantic; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcHlslVertexAttributeRemap.BufferAn array ofSpvcHlslVertexAttributeRemapstructs.
-
Constructor Summary
Constructors Constructor Description SpvcHlslVertexAttributeRemap(java.nio.ByteBuffer container)Creates aSpvcHlslVertexAttributeRemapinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpvcHlslVertexAttributeRemapcalloc()Returns a newSpvcHlslVertexAttributeRemapinstance allocated withmemCalloc.static SpvcHlslVertexAttributeRemap.Buffercalloc(int capacity)Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated withmemCalloc.static SpvcHlslVertexAttributeRemap.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHlslVertexAttributeRemapcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslVertexAttributeRemapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcHlslVertexAttributeRemapcreate()Returns a newSpvcHlslVertexAttributeRemapinstance allocated withBufferUtils.static SpvcHlslVertexAttributeRemap.Buffercreate(int capacity)Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated withBufferUtils.static SpvcHlslVertexAttributeRemapcreate(long address)Returns a newSpvcHlslVertexAttributeRemapinstance for the specified memory address.static SpvcHlslVertexAttributeRemap.Buffercreate(long address, int capacity)Create aSpvcHlslVertexAttributeRemap.Bufferinstance at the specified memory.static SpvcHlslVertexAttributeRemapcreateSafe(long address)static SpvcHlslVertexAttributeRemap.BuffercreateSafe(long address, int capacity)intlocation()SpvcHlslVertexAttributeRemaplocation(int value)Sets the specified value to thelocationfield.static SpvcHlslVertexAttributeRemapmalloc()Returns a newSpvcHlslVertexAttributeRemapinstance allocated withmemAlloc.static SpvcHlslVertexAttributeRemap.Buffermalloc(int capacity)Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated withmemAlloc.static SpvcHlslVertexAttributeRemap.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated on the specifiedMemoryStack.static SpvcHlslVertexAttributeRemapmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcHlslVertexAttributeRemapinstance allocated on the specifiedMemoryStack.static intnlocation(long struct)Unsafe version oflocation().static voidnlocation(long struct, int value)Unsafe version oflocation.static java.nio.ByteBuffernsemantic(long struct)Unsafe version ofsemantic().static voidnsemantic(long struct, java.nio.ByteBuffer value)Unsafe version ofsemantic.static java.lang.StringnsemanticString(long struct)Unsafe version ofsemanticString().java.nio.ByteBuffersemantic()SpvcHlslVertexAttributeRemapsemantic(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thesemanticfield.java.lang.StringsemanticString()SpvcHlslVertexAttributeRemapset(int location, java.nio.ByteBuffer semantic)Initializes this struct with the specified values.SpvcHlslVertexAttributeRemapset(SpvcHlslVertexAttributeRemap src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
SpvcHlslVertexAttributeRemap
public SpvcHlslVertexAttributeRemap(java.nio.ByteBuffer container)
Creates aSpvcHlslVertexAttributeRemapinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
location
public int location()
- Returns:
- the value of the
locationfield.
-
semantic
public java.nio.ByteBuffer semantic()
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thesemanticfield.
-
semanticString
public java.lang.String semanticString()
- Returns:
- the null-terminated string pointed to by the
semanticfield.
-
location
public SpvcHlslVertexAttributeRemap location(int value)
Sets the specified value to thelocationfield.
-
semantic
public SpvcHlslVertexAttributeRemap semantic(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thesemanticfield.
-
set
public SpvcHlslVertexAttributeRemap set(int location, java.nio.ByteBuffer semantic)
Initializes this struct with the specified values.
-
set
public SpvcHlslVertexAttributeRemap set(SpvcHlslVertexAttributeRemap src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcHlslVertexAttributeRemap malloc()
Returns a newSpvcHlslVertexAttributeRemapinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcHlslVertexAttributeRemap calloc()
Returns a newSpvcHlslVertexAttributeRemapinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcHlslVertexAttributeRemap create()
Returns a newSpvcHlslVertexAttributeRemapinstance allocated withBufferUtils.
-
create
public static SpvcHlslVertexAttributeRemap create(long address)
Returns a newSpvcHlslVertexAttributeRemapinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcHlslVertexAttributeRemap createSafe(long address)
-
malloc
public static SpvcHlslVertexAttributeRemap.Buffer malloc(int capacity)
Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcHlslVertexAttributeRemap.Buffer calloc(int capacity)
Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcHlslVertexAttributeRemap.Buffer create(int capacity)
Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcHlslVertexAttributeRemap.Buffer create(long address, int capacity)
Create aSpvcHlslVertexAttributeRemap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcHlslVertexAttributeRemap.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcHlslVertexAttributeRemap malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslVertexAttributeRemapinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcHlslVertexAttributeRemap calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslVertexAttributeRemapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcHlslVertexAttributeRemap.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcHlslVertexAttributeRemap.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcHlslVertexAttributeRemap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nlocation
public static int nlocation(long struct)
Unsafe version oflocation().
-
nsemantic
public static java.nio.ByteBuffer nsemantic(long struct)
Unsafe version ofsemantic().
-
nsemanticString
public static java.lang.String nsemanticString(long struct)
Unsafe version ofsemanticString().
-
nlocation
public static void nlocation(long struct, int value)Unsafe version oflocation.
-
nsemantic
public static void nsemantic(long struct, java.nio.ByteBuffer value)Unsafe version ofsemantic.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-