
org.lwjgl.util.shaderc.ShadercIncludeResultReleaseI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-shaderc Show documentation
Show all versions of lwjgl-shaderc Show documentation
A collection of libraries for shader compilation.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.shaderc;
import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;
/**
* Instances of this interface may be passed to the {@link Shaderc#shaderc_compile_options_set_include_callbacks compile_options_set_include_callbacks} function.
*
* Type
*
*
* void (*{@link #invoke}) (
* void *user_data,
* shaderc_include_result *include_result
* )
*/
@FunctionalInterface
@NativeType("shaderc_include_result_release_fn")
public interface ShadercIncludeResultReleaseI extends CallbackI {
FFICIF CIF = apiCreateCIF(
FFI_DEFAULT_ABI,
ffi_type_void,
ffi_type_pointer, ffi_type_pointer
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
invoke(
memGetAddress(memGetAddress(args)),
memGetAddress(memGetAddress(args + POINTER_SIZE))
);
}
/** An includer callback type for destroying an include result. */
void invoke(@NativeType("void *") long user_data, @NativeType("shaderc_include_result *") long include_result);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy