Top Description Inners Constructors Methods
org.lwjgl.util.shaderc

public abstract Class ShadercIncludeResolve

extends Callback
implements ShadercIncludeResolveI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.shaderc.ShadercIncludeResolveI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.shaderc.ShadercIncludeResolve.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the compile_options_set_include_callbacks function.

Type


shaderc_include_result * (*invoke) (
    void *user_data,
    char const *requested_source,
    int type,
    char const *requesting_source,
    size_t include_depth
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
ShadercIncludeResolve(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static ShadercIncludeResolve

Returns:

the new ShadercIncludeResolve
create
(long functionPointer)

Creates a ShadercIncludeResolve instance from the specified function pointer.

public static ShadercIncludeResolve
create(ShadercIncludeResolveI instance)

Creates a ShadercIncludeResolve instance that delegates to the specified ShadercIncludeResolveI instance.

public static ShadercIncludeResolve
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ShadercIncludeResolveback to summary
protected ShadercIncludeResolve()
ShadercIncludeResolveback to summary
pack-priv ShadercIncludeResolve(long functionPointer)

Method Detail

createback to summary
public static ShadercIncludeResolve create(long functionPointer)

Creates a ShadercIncludeResolve instance from the specified function pointer.

Returns:ShadercIncludeResolve

the new ShadercIncludeResolve

createback to summary
public static ShadercIncludeResolve create(ShadercIncludeResolveI instance)

Creates a ShadercIncludeResolve instance that delegates to the specified ShadercIncludeResolveI instance.

createSafeback to summary
public static ShadercIncludeResolve createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.util.shaderc back to summary

private final Class ShadercIncludeResolve.Container

extends ShadercIncludeResolve
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ShadercIncludeResolveI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, ShadercIncludeResolveI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long user_data, long requested_source, int type, long requesting_source, long include_depth)

Implements org.lwjgl.util.shaderc.ShadercIncludeResolveI.invoke.

An includer callback type for mapping an #include request to an include result.
Inherited from org.lwjgl.util.shaderc.ShadercIncludeResolve:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ShadercIncludeResolveI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, ShadercIncludeResolveI delegate)

Method Detail

invokeback to summary
public long invoke(long user_data, long requested_source, int type, long requesting_source, long include_depth)

Implements org.lwjgl.util.shaderc.ShadercIncludeResolveI.invoke.

Doc from org.lwjgl.util.shaderc.ShadercIncludeResolveI.invoke.

An includer callback type for mapping an #include request to an include result.

The user_data parameter specifies the client context. The requested_source parameter specifies the name of the source being requested. The type parameter specifies the kind of inclusion request being made. The requesting_source parameter specifies the name of the source containing the #include request. The includer owns the result object and its contents, and both must remain valid until the release callback is called on the result object.

Annotations
@Override