struct shaderc_include_result {
char const * source_name;
size_t source_name_length;
char const * content;
size_t content_length;
void * user_data;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | ShadercIncludeResult.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CONTENT
The struct member offsets. |
| public static final int | CONTENT_LENGTH
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SOURCE_NAME
The struct member offsets. |
| public static final int | SOURCE_NAME_LENGTH
The struct member offsets. |
| public static final int | USER_DATA
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ShadercIncludeResult(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult. | calloc(int
the buffer capacity capacity)Returns a new |
| public static ShadercIncludeResult | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ShadercIncludeResult. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult. | |
| public static ShadercIncludeResult. | |
| public ByteBuffer | |
| public ShadercIncludeResult | |
| public long | |
| public String | |
| protected ShadercIncludeResult | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult. | create(int
the buffer capacity capacity)Returns a new |
| public static ShadercIncludeResult. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult. | |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult. | malloc(int
the buffer capacity capacity)Returns a new |
| public static ShadercIncludeResult | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ShadercIncludeResult. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult | |
| public static ShadercIncludeResult. | |
| public static ShadercIncludeResult. | |
| public static ByteBuffer | |
| public static void | |
| public static long | |
| public static void | ncontent_length(long struct, long value)
Sets the specified value to the |
| public static String | |
| public static ByteBuffer | |
| public static void | |
| public static long | |
| public static void | nsource_name_length(long struct, long value)
Sets the specified value to the |
| public static String | |
| public static long | |
| public static void | |
| public ShadercIncludeResult | set(ByteBuffer source_name, ByteBuffer content, long user_data)
Initializes this struct with the specified values. |
| public ShadercIncludeResult | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public ByteBuffer | |
| public ShadercIncludeResult | source_name(ByteBuffer value)
Sets the address of the specified encoded string to the |
| public long | |
| public String | |
| public long | |
| public ShadercIncludeResult | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CONTENT | back to summary |
|---|---|
| public static final int CONTENT The struct member offsets. | |
| CONTENT_LENGTH | back to summary |
|---|---|
| public static final int CONTENT_LENGTH The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SOURCE_NAME | back to summary |
|---|---|
| public static final int SOURCE_NAME The struct member offsets. | |
| SOURCE_NAME_LENGTH | back to summary |
|---|---|
| public static final int SOURCE_NAME_LENGTH The struct member offsets. | |
| USER_DATA | back to summary |
|---|---|
| public static final int USER_DATA The struct member offsets. | |
| ShadercIncludeResult | back to summary |
|---|---|
| protected ShadercIncludeResult(long address, ByteBuffer container) | |
| ShadercIncludeResult | back to summary |
|---|---|
| public ShadercIncludeResult(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static ShadercIncludeResult calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static ShadercIncludeResult. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static ShadercIncludeResult calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static ShadercIncludeResult. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static ShadercIncludeResult callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static ShadercIncludeResult callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static ShadercIncludeResult. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static ShadercIncludeResult. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| content | back to summary |
|---|---|
| public ByteBuffer content() the text contents of the source file in the normal case. For a failed inclusion, this contains the error message.
| |
| content | back to summary |
|---|---|
| public ShadercIncludeResult content(ByteBuffer value) Sets the address of the specified encoded string to the | |
| content_length | back to summary |
|---|---|
public long content_length()
| |
| contentString | back to summary |
|---|---|
| public String contentString() the text contents of the source file in the normal case. For a failed inclusion, this contains the error message.
| |
| create | back to summary |
|---|---|
| protected ShadercIncludeResult create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static ShadercIncludeResult create() Returns a new | |
| create | back to summary |
|---|---|
| public static ShadercIncludeResult create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static ShadercIncludeResult. Returns a new
| |
| create | back to summary |
|---|---|
| public static ShadercIncludeResult. Create a
| |
| createSafe | back to summary |
|---|---|
| public static ShadercIncludeResult createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static ShadercIncludeResult. Like
| |
| malloc | back to summary |
|---|---|
| public static ShadercIncludeResult malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static ShadercIncludeResult. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static ShadercIncludeResult malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static ShadercIncludeResult. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static ShadercIncludeResult mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static ShadercIncludeResult mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static ShadercIncludeResult. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static ShadercIncludeResult. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ncontent | back to summary |
|---|---|
| public static ByteBuffer ncontent(long struct) Unsafe version of | |
| ncontent | back to summary |
|---|---|
| public static void ncontent(long struct, ByteBuffer value) Unsafe version of | |
| ncontent_length | back to summary |
|---|---|
| public static long ncontent_length(long struct) Unsafe version of | |
| ncontent_length | back to summary |
|---|---|
| public static void ncontent_length(long struct, long value) Sets the specified value to the | |
| ncontentString | back to summary |
|---|---|
| public static String ncontentString(long struct) Unsafe version of | |
| nsource_name | back to summary |
|---|---|
| public static ByteBuffer nsource_name(long struct) Unsafe version of | |
| nsource_name | back to summary |
|---|---|
| public static void nsource_name(long struct, ByteBuffer value) Unsafe version of | |
| nsource_name_length | back to summary |
|---|---|
| public static long nsource_name_length(long struct) Unsafe version of | |
| nsource_name_length | back to summary |
|---|---|
| public static void nsource_name_length(long struct, long value) Sets the specified value to the | |
| nsource_nameString | back to summary |
|---|---|
| public static String nsource_nameString(long struct) Unsafe version of | |
| nuser_data | back to summary |
|---|---|
| public static long nuser_data(long struct) Unsafe version of | |
| nuser_data | back to summary |
|---|---|
| public static void nuser_data(long struct, long value) Unsafe version of | |
| set | back to summary |
|---|---|
| public ShadercIncludeResult set(ByteBuffer source_name, ByteBuffer content, long user_data) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public ShadercIncludeResult set(ShadercIncludeResult src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| source_name | back to summary |
|---|---|
| public ByteBuffer source_name() the name of the source file. The name should be fully resolved in the sense that it should be a unique name in the context of the includer. For example, if the includer maps source names to files in a filesystem, then this name should be the absolute path of the file. For a failed inclusion, this string is empty.
| |
| source_name | back to summary |
|---|---|
| public ShadercIncludeResult source_name(ByteBuffer value) Sets the address of the specified encoded string to the | |
| source_name_length | back to summary |
|---|---|
public long source_name_length()
| |
| source_nameString | back to summary |
|---|---|
| public String source_nameString() the name of the source file. The name should be fully resolved in the sense that it should be a unique name in the context of the includer. For example, if the includer maps source names to files in a filesystem, then this name should be the absolute path of the file. For a failed inclusion, this string is empty.
| |
| user_data | back to summary |
|---|---|
| public long user_data() user data to be passed along with this request
| |
| user_data | back to summary |
|---|---|
| public ShadercIncludeResult user_data(long value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
ShadercIncludeResult structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final ShadercIncludeResult |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | Returns: aByteBuffer view of the null-terminated string pointed to by the ShadercIncludeResult#content field.
|
| public ShadercIncludeResult. | content(ByteBuffer value)
Sets the address of the specified encoded string to the |
| public long | |
| public String | Returns: the null-terminated string pointed to by theShadercIncludeResult#content field.
|
| protected ShadercIncludeResult | |
| protected ShadercIncludeResult. | |
| public ByteBuffer | Returns: aByteBuffer view of the null-terminated string pointed to by the ShadercIncludeResult#source_name field.
|
| public ShadercIncludeResult. | source_name(ByteBuffer value)
Sets the address of the specified encoded string to the |
| public long | |
| public String | Returns: the null-terminated string pointed to by theShadercIncludeResult#source_name field.
|
| public long | |
| public ShadercIncludeResult. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final ShadercIncludeResult ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| content | back to summary |
|---|---|
public ByteBuffer content()
| |
| content | back to summary |
|---|---|
| public ShadercIncludeResult. Sets the address of the specified encoded string to the | |
| content_length | back to summary |
|---|---|
public long content_length()
| |
| contentString | back to summary |
|---|---|
public String contentString()
| |
| getElementFactory | back to summary |
|---|---|
| protected ShadercIncludeResult getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected ShadercIncludeResult. Implements abstract org.
| |
| source_name | back to summary |
|---|---|
public ByteBuffer source_name()
| |
| source_name | back to summary |
|---|---|
| public ShadercIncludeResult. Sets the address of the specified encoded string to the | |
| source_name_length | back to summary |
|---|---|
public long source_name_length()
| |
| source_nameString | back to summary |
|---|---|
public String source_nameString()
| |
| user_data | back to summary |
|---|---|
public long user_data()
| |
| user_data | back to summary |
|---|---|
| public ShadercIncludeResult. Sets the specified value to the | |