Java 类org.lwjgl.util.generator.Code 实例源码

项目:PhET    文件:APPLE_SetMemObjectDestructor.java   
@Code(
    tryBlock = true,
    // Create a GlobalRef to the callback object.
    javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
    // Check if we need to delete the GlobalRef.
    javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj,
                                  @PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
                                  @Constant("user_data") @PointerWrapper("void *") long user_data);
项目:Wolf_game    文件:APPLE_SetMemObjectDestructor.java   
@Code(
    tryBlock = true,
    // Create a GlobalRef to the callback object.
    javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
    // Check if we need to delete the GlobalRef.
    javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj,
                                  @PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
                                  @Constant("user_data") @PointerWrapper("void *") long user_data);
项目:GPVM    文件:APPLE_SetMemObjectDestructor.java   
@Code(
    tryBlock = true,
    // Create a GlobalRef to the callback object.
    javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
    // Check if we need to delete the GlobalRef.
    javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj,
                                  @PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
                                  @Constant("user_data") @PointerWrapper("void *") long user_data);
项目:TeacherSmash    文件:APPLE_SetMemObjectDestructor.java   
@Code(
    tryBlock = true,
    // Create a GlobalRef to the callback object.
    javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
    // Check if we need to delete the GlobalRef.
    javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj,
                                  @PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
                                  @Constant("user_data") @PointerWrapper("void *") long user_data);
项目:3d-Demo    文件:APPLE_SetMemObjectDestructor.java   
@Code(
    tryBlock = true,
    // Create a GlobalRef to the callback object.
    javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);",
    // Check if we need to delete the GlobalRef.
    javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);"
)
@cl_int
int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj,
                                  @PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify,
                                  @Constant("user_data") @PointerWrapper("void *") long user_data);