Package org.lwjgl.util.shaderc
Class SPVDiagnostic
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spv_diagnostic_t {
spv_position_t position;
char * error;
bool isTextSource;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSPVDiagnostic(ByteBuffer container) Creates aSPVDiagnosticinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SPVDiagnosticcalloc()Returns a newSPVDiagnosticinstance allocated withmemCalloc.static SPVDiagnostic.Buffercalloc(int capacity) Returns a newSPVDiagnostic.Bufferinstance allocated withmemCalloc.static SPVDiagnostic.Buffercalloc(int capacity, MemoryStack stack) Returns a newSPVDiagnostic.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SPVDiagnosticcalloc(MemoryStack stack) Returns a newSPVDiagnosticinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SPVDiagnosticcreate()Returns a newSPVDiagnosticinstance allocated withBufferUtils.static SPVDiagnostic.Buffercreate(int capacity) Returns a newSPVDiagnostic.Bufferinstance allocated withBufferUtils.static SPVDiagnosticcreate(long address) Returns a newSPVDiagnosticinstance for the specified memory address.static SPVDiagnostic.Buffercreate(long address, int capacity) Create aSPVDiagnostic.Bufferinstance at the specified memory.static @Nullable SPVDiagnosticcreateSafe(long address) static @Nullable SPVDiagnostic.BuffercreateSafe(long address, int capacity) error()booleanstatic SPVDiagnosticmalloc()Returns a newSPVDiagnosticinstance allocated withmemAlloc.static SPVDiagnostic.Buffermalloc(int capacity) Returns a newSPVDiagnostic.Bufferinstance allocated withmemAlloc.static SPVDiagnostic.Buffermalloc(int capacity, MemoryStack stack) Returns a newSPVDiagnostic.Bufferinstance allocated on the specifiedMemoryStack.static SPVDiagnosticmalloc(MemoryStack stack) Returns a newSPVDiagnosticinstance allocated on the specifiedMemoryStack.static ByteBuffernerror(long struct) Unsafe version oferror().static StringnerrorString(long struct) Unsafe version oferrorString().static booleannisTextSource(long struct) Unsafe version ofisTextSource().static SPVPositionnposition$(long struct) Unsafe version ofposition$().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
POSITION
public static final int POSITIONThe struct member offsets. -
ERROR
public static final int ERRORThe struct member offsets. -
ISTEXTSOURCE
public static final int ISTEXTSOURCEThe struct member offsets.
-
-
Constructor Details
-
SPVDiagnostic
Creates aSPVDiagnosticinstance 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<SPVDiagnostic>
-
position$
- Returns:
- a
SPVPositionview of thepositionfield.
-
error
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theerrorfield.
-
errorString
- Returns:
- the null-terminated string pointed to by the
errorfield.
-
isTextSource
public boolean isTextSource()- Returns:
- the value of the
isTextSourcefield.
-
malloc
Returns a newSPVDiagnosticinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSPVDiagnosticinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSPVDiagnosticinstance allocated withBufferUtils. -
create
Returns a newSPVDiagnosticinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSPVDiagnostic.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSPVDiagnostic.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSPVDiagnostic.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSPVDiagnostic.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSPVDiagnosticinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSPVDiagnosticinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSPVDiagnostic.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSPVDiagnostic.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nposition$
Unsafe version ofposition$(). -
nerror
Unsafe version oferror(). -
nerrorString
Unsafe version oferrorString(). -
nisTextSource
public static boolean nisTextSource(long struct) Unsafe version ofisTextSource().
-