Package org.lwjgl.util.shaderc
Class SPVParsedHeader
- All Implemented Interfaces:
Pointer
struct spv_parsed_header_t {
uint32_t magic;
uint32_t version;
uint32_t generator;
uint32_t bound;
uint32_t reserved;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSPVParsedHeader(ByteBuffer container) Creates aSPVParsedHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbound()static SPVParsedHeadercreate(long address) Returns a newSPVParsedHeaderinstance for the specified memory address.static SPVParsedHeader.Buffercreate(long address, int capacity) Create aSPVParsedHeader.Bufferinstance at the specified memory.static @Nullable SPVParsedHeadercreateSafe(long address) static @Nullable SPVParsedHeader.BuffercreateSafe(long address, int capacity) intintmagic()static intnbound(long struct) Unsafe version ofbound().static intngenerator(long struct) Unsafe version ofgenerator().static intnmagic(long struct) Unsafe version ofmagic().static intnreserved(long struct) static intnversion(long struct) Unsafe version ofversion().intsizeof()Returnssizeof(struct).intversion()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MAGIC
public static final int MAGICThe struct member offsets. -
VERSION
public static final int VERSIONThe struct member offsets. -
GENERATOR
public static final int GENERATORThe struct member offsets. -
BOUND
public static final int BOUNDThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
SPVParsedHeader
Creates aSPVParsedHeaderinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SPVParsedHeader>
-
magic
public int magic()- Returns:
- the value of the
magicfield.
-
version
public int version()- Returns:
- the value of the
versionfield.
-
generator
public int generator()- Returns:
- the value of the
generatorfield.
-
bound
public int bound()- Returns:
- the value of the
boundfield.
-
create
Returns a newSPVParsedHeaderinstance for the specified memory address. -
createSafe
-
create
Create aSPVParsedHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nmagic
public static int nmagic(long struct) Unsafe version ofmagic(). -
nversion
public static int nversion(long struct) Unsafe version ofversion(). -
ngenerator
public static int ngenerator(long struct) Unsafe version ofgenerator(). -
nbound
public static int nbound(long struct) Unsafe version ofbound(). -
nreserved
public static int nreserved(long struct)
-