Class WGPUUtil
java.lang.Object
club.doki7.webgpu.WGPUUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WGPUStringViewcreateStringView(Arena arena, @Nullable String s) static MemorySegmentmakeDeviceLostCallback(WGPUUtil.DeviceLostCallback callback, Arena arena) static MemorySegmentmakeQueueWorkDoneCallback(WGPUUtil.QueueWorkDoneCallback callback, Arena arena) static MemorySegmentmakeUncapturedErrorCallback(WGPUUtil.UncapturedErrorCallback callback, Arena arena) static @Nullable StringreadStringView(@Nullable WGPUStringView stringView) static @Nullable StringreadStringView(MemorySegment stringViewSegment)
-
Constructor Details
-
WGPUUtil
public WGPUUtil()
-
-
Method Details
-
readStringView
@Nullable public static @Nullable String readStringView(@Nullable @Nullable WGPUStringView stringView) -
readStringView
-
createStringView
-
makeDeviceLostCallback
public static MemorySegment makeDeviceLostCallback(WGPUUtil.DeviceLostCallback callback, Arena arena) -
makeUncapturedErrorCallback
public static MemorySegment makeUncapturedErrorCallback(WGPUUtil.UncapturedErrorCallback callback, Arena arena) -
makeQueueWorkDoneCallback
public static MemorySegment makeQueueWorkDoneCallback(WGPUUtil.QueueWorkDoneCallback callback, Arena arena)
-