All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.littlekt.wgpu.WGPU Maven / Gradle / Ivy

// Generated by jextract

package com.littlekt.wgpu;

import java.lang.invoke.*;
import java.lang.foreign.*;
import java.nio.ByteOrder;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;

import static java.lang.foreign.ValueLayout.*;
import static java.lang.foreign.MemoryLayout.PathElement.*;

public class WGPU {

    WGPU() {
        // Should not be called directly
    }

    static final Arena LIBRARY_ARENA = Arena.ofAuto();
    static final boolean TRACE_DOWNCALLS = Boolean.getBoolean("jextract.trace.downcalls");

    static void traceDowncall(String name, Object... args) {
         String traceArgs = Arrays.stream(args)
                       .map(Object::toString)
                       .collect(Collectors.joining(", "));
         System.out.printf("%s(%s)\n", name, traceArgs);
    }

    static MemorySegment findOrThrow(String symbol) {
        return SYMBOL_LOOKUP.find(symbol)
            .orElseThrow(() -> new UnsatisfiedLinkError("unresolved symbol: " + symbol));
    }

    static MethodHandle upcallHandle(Class fi, String name, FunctionDescriptor fdesc) {
        try {
            return MethodHandles.lookup().findVirtual(fi, name, fdesc.toMethodType());
        } catch (ReflectiveOperationException ex) {
            throw new AssertionError(ex);
        }
    }

    static MemoryLayout align(MemoryLayout layout, long align) {
        return switch (layout) {
            case PaddingLayout p -> p;
            case ValueLayout v -> v.withByteAlignment(align);
            case GroupLayout g -> {
                MemoryLayout[] alignedMembers = g.memberLayouts().stream()
                        .map(m -> align(m, align)).toArray(MemoryLayout[]::new);
                yield g instanceof StructLayout ?
                        MemoryLayout.structLayout(alignedMembers) : MemoryLayout.unionLayout(alignedMembers);
            }
            case SequenceLayout s -> MemoryLayout.sequenceLayout(s.elementCount(), align(s.elementLayout(), align));
        };
    }

    static final SymbolLookup SYMBOL_LOOKUP = SymbolLookup.loaderLookup()
            .or(Linker.nativeLinker().defaultLookup());

    public static final ValueLayout.OfBoolean C_BOOL = ValueLayout.JAVA_BOOLEAN;
    public static final ValueLayout.OfByte C_CHAR = ValueLayout.JAVA_BYTE;
    public static final ValueLayout.OfShort C_SHORT = ValueLayout.JAVA_SHORT;
    public static final ValueLayout.OfInt C_INT = ValueLayout.JAVA_INT;
    public static final ValueLayout.OfLong C_LONG_LONG = ValueLayout.JAVA_LONG;
    public static final ValueLayout.OfFloat C_FLOAT = ValueLayout.JAVA_FLOAT;
    public static final ValueLayout.OfDouble C_DOUBLE = ValueLayout.JAVA_DOUBLE;
    public static final AddressLayout C_POINTER = ValueLayout.ADDRESS
            .withTargetLayout(MemoryLayout.sequenceLayout(java.lang.Long.MAX_VALUE, JAVA_BYTE));
    public static final ValueLayout.OfInt C_LONG = ValueLayout.JAVA_INT;
    public static final ValueLayout.OfDouble C_LONG_DOUBLE = ValueLayout.JAVA_DOUBLE;
    private static final int _VCRT_COMPILER_PREPROCESSOR = (int)1L;
    /**
     * {@snippet lang=c :
     * #define _VCRT_COMPILER_PREPROCESSOR 1
     * }
     */
    public static int _VCRT_COMPILER_PREPROCESSOR() {
        return _VCRT_COMPILER_PREPROCESSOR;
    }
    private static final int _SAL_VERSION = (int)20L;
    /**
     * {@snippet lang=c :
     * #define _SAL_VERSION 20
     * }
     */
    public static int _SAL_VERSION() {
        return _SAL_VERSION;
    }
    private static final int __SAL_H_VERSION = (int)180000000L;
    /**
     * {@snippet lang=c :
     * #define __SAL_H_VERSION 180000000
     * }
     */
    public static int __SAL_H_VERSION() {
        return __SAL_H_VERSION;
    }
    private static final int _USE_DECLSPECS_FOR_SAL = (int)0L;
    /**
     * {@snippet lang=c :
     * #define _USE_DECLSPECS_FOR_SAL 0
     * }
     */
    public static int _USE_DECLSPECS_FOR_SAL() {
        return _USE_DECLSPECS_FOR_SAL;
    }
    private static final int _USE_ATTRIBUTES_FOR_SAL = (int)0L;
    /**
     * {@snippet lang=c :
     * #define _USE_ATTRIBUTES_FOR_SAL 0
     * }
     */
    public static int _USE_ATTRIBUTES_FOR_SAL() {
        return _USE_ATTRIBUTES_FOR_SAL;
    }
    private static final int _CRT_PACKING = (int)8L;
    /**
     * {@snippet lang=c :
     * #define _CRT_PACKING 8
     * }
     */
    public static int _CRT_PACKING() {
        return _CRT_PACKING;
    }
    private static final int _HAS_EXCEPTIONS = (int)1L;
    /**
     * {@snippet lang=c :
     * #define _HAS_EXCEPTIONS 1
     * }
     */
    public static int _HAS_EXCEPTIONS() {
        return _HAS_EXCEPTIONS;
    }
    private static final int _HAS_CXX17 = (int)0L;
    /**
     * {@snippet lang=c :
     * #define _HAS_CXX17 0
     * }
     */
    public static int _HAS_CXX17() {
        return _HAS_CXX17;
    }
    private static final int _HAS_CXX20 = (int)0L;
    /**
     * {@snippet lang=c :
     * #define _HAS_CXX20 0
     * }
     */
    public static int _HAS_CXX20() {
        return _HAS_CXX20;
    }
    private static final int _HAS_NODISCARD = (int)0L;
    /**
     * {@snippet lang=c :
     * #define _HAS_NODISCARD 0
     * }
     */
    public static int _HAS_NODISCARD() {
        return _HAS_NODISCARD;
    }
    private static final int WCHAR_MIN = (int)0L;
    /**
     * {@snippet lang=c :
     * #define WCHAR_MIN 0
     * }
     */
    public static int WCHAR_MIN() {
        return WCHAR_MIN;
    }
    private static final int WCHAR_MAX = (int)65535L;
    /**
     * {@snippet lang=c :
     * #define WCHAR_MAX 65535
     * }
     */
    public static int WCHAR_MAX() {
        return WCHAR_MAX;
    }
    private static final int WINT_MIN = (int)0L;
    /**
     * {@snippet lang=c :
     * #define WINT_MIN 0
     * }
     */
    public static int WINT_MIN() {
        return WINT_MIN;
    }
    private static final int WINT_MAX = (int)65535L;
    /**
     * {@snippet lang=c :
     * #define WINT_MAX 65535
     * }
     */
    public static int WINT_MAX() {
        return WINT_MAX;
    }
    /**
     * {@snippet lang=c :
     * typedef unsigned long long uintptr_t
     * }
     */
    public static final OfLong uintptr_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef char *va_list
     * }
     */
    public static final AddressLayout va_list = WGPU.C_POINTER;

    /**
     * Variadic invoker class for:
     * {@snippet lang=c :
     * void __va_start(va_list *, ...)
     * }
     */
    public static class __va_start {
        private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.ofVoid(
                WGPU.C_POINTER
            );
        private static final MemorySegment ADDR = WGPU.findOrThrow("__va_start");

        private final MethodHandle handle;
        private final FunctionDescriptor descriptor;
        private final MethodHandle spreader;

        private __va_start(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
            this.handle = handle;
            this.descriptor = descriptor;
            this.spreader = spreader;
        }

        /**
         * Variadic invoker factory for:
         * {@snippet lang=c :
         * void __va_start(va_list *, ...)
         * }
         */
        public static __va_start makeInvoker(MemoryLayout... layouts) {
            FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
            Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
            var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
            var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
            return new __va_start(mh$, desc$, spreader$);
        }

        /**
         * {@return the address}
         */
        public static MemorySegment address() {
            return ADDR;
        }

        /**
         * {@return the specialized method handle}
         */
        public MethodHandle handle() {
            return handle;
        }

        /**
         * {@return the specialized descriptor}
         */
        public FunctionDescriptor descriptor() {
            return descriptor;
        }

        public void apply(MemorySegment x0, Object... x1) {
            try {
                if (TRACE_DOWNCALLS) {
                    traceDowncall("__va_start", x0, x1);
                }
                spreader.invokeExact(x0, x1);
            } catch(IllegalArgumentException | ClassCastException ex$)  {
                throw ex$; // rethrow IAE from passing wrong number/type of args
            } catch (Throwable ex$) {
               throw new AssertionError("should not reach here", ex$);
            }
        }
    }
    /**
     * {@snippet lang=c :
     * typedef unsigned long long size_t
     * }
     */
    public static final OfLong size_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef long long ptrdiff_t
     * }
     */
    public static final OfLong ptrdiff_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef long long intptr_t
     * }
     */
    public static final OfLong intptr_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef _Bool __vcrt_bool
     * }
     */
    public static final OfBoolean __vcrt_bool = WGPU.C_BOOL;
    /**
     * {@snippet lang=c :
     * typedef unsigned short wchar_t
     * }
     */
    public static final OfShort wchar_t = WGPU.C_SHORT;

    private static class __security_init_cookie {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(    );

        public static final MemorySegment ADDR = WGPU.findOrThrow("__security_init_cookie");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void __security_init_cookie()
     * }
     */
    public static FunctionDescriptor __security_init_cookie$descriptor() {
        return __security_init_cookie.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void __security_init_cookie()
     * }
     */
    public static MethodHandle __security_init_cookie$handle() {
        return __security_init_cookie.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void __security_init_cookie()
     * }
     */
    public static MemorySegment __security_init_cookie$address() {
        return __security_init_cookie.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void __security_init_cookie()
     * }
     */
    public static void __security_init_cookie() {
        var mh$ = __security_init_cookie.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("__security_init_cookie");
            }
            mh$.invokeExact();
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class __security_check_cookie {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("__security_check_cookie");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void __security_check_cookie(uintptr_t _StackCookie)
     * }
     */
    public static FunctionDescriptor __security_check_cookie$descriptor() {
        return __security_check_cookie.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void __security_check_cookie(uintptr_t _StackCookie)
     * }
     */
    public static MethodHandle __security_check_cookie$handle() {
        return __security_check_cookie.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void __security_check_cookie(uintptr_t _StackCookie)
     * }
     */
    public static MemorySegment __security_check_cookie$address() {
        return __security_check_cookie.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void __security_check_cookie(uintptr_t _StackCookie)
     * }
     */
    public static void __security_check_cookie(long _StackCookie) {
        var mh$ = __security_check_cookie.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("__security_check_cookie", _StackCookie);
            }
            mh$.invokeExact(_StackCookie);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class __report_gsfailure {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("__report_gsfailure");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void __report_gsfailure(uintptr_t _StackCookie)
     * }
     */
    public static FunctionDescriptor __report_gsfailure$descriptor() {
        return __report_gsfailure.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void __report_gsfailure(uintptr_t _StackCookie)
     * }
     */
    public static MethodHandle __report_gsfailure$handle() {
        return __report_gsfailure.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void __report_gsfailure(uintptr_t _StackCookie)
     * }
     */
    public static MemorySegment __report_gsfailure$address() {
        return __report_gsfailure.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void __report_gsfailure(uintptr_t _StackCookie)
     * }
     */
    public static void __report_gsfailure(long _StackCookie) {
        var mh$ = __report_gsfailure.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("__report_gsfailure", _StackCookie);
            }
            mh$.invokeExact(_StackCookie);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class __security_cookie$constants {
        public static final OfLong LAYOUT = WGPU.C_LONG_LONG;
        public static final MemorySegment SEGMENT = WGPU.findOrThrow("__security_cookie").reinterpret(LAYOUT.byteSize());
    }

    /**
     * Layout for variable:
     * {@snippet lang=c :
     * extern uintptr_t __security_cookie
     * }
     */
    public static OfLong __security_cookie$layout() {
        return __security_cookie$constants.LAYOUT;
    }

    /**
     * Segment for variable:
     * {@snippet lang=c :
     * extern uintptr_t __security_cookie
     * }
     */
    public static MemorySegment __security_cookie$segment() {
        return __security_cookie$constants.SEGMENT;
    }

    /**
     * Getter for variable:
     * {@snippet lang=c :
     * extern uintptr_t __security_cookie
     * }
     */
    public static long __security_cookie() {
        return __security_cookie$constants.SEGMENT.get(__security_cookie$constants.LAYOUT, 0L);
    }

    /**
     * Setter for variable:
     * {@snippet lang=c :
     * extern uintptr_t __security_cookie
     * }
     */
    public static void __security_cookie(long varValue) {
        __security_cookie$constants.SEGMENT.set(__security_cookie$constants.LAYOUT, 0L, varValue);
    }
    /**
     * {@snippet lang=c :
     * typedef signed char int8_t
     * }
     */
    public static final OfByte int8_t = WGPU.C_CHAR;
    /**
     * {@snippet lang=c :
     * typedef short int16_t
     * }
     */
    public static final OfShort int16_t = WGPU.C_SHORT;
    /**
     * {@snippet lang=c :
     * typedef int int32_t
     * }
     */
    public static final OfInt int32_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef long long int64_t
     * }
     */
    public static final OfLong int64_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef unsigned char uint8_t
     * }
     */
    public static final OfByte uint8_t = WGPU.C_CHAR;
    /**
     * {@snippet lang=c :
     * typedef unsigned short uint16_t
     * }
     */
    public static final OfShort uint16_t = WGPU.C_SHORT;
    /**
     * {@snippet lang=c :
     * typedef unsigned int uint32_t
     * }
     */
    public static final OfInt uint32_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef unsigned long long uint64_t
     * }
     */
    public static final OfLong uint64_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef signed char int_least8_t
     * }
     */
    public static final OfByte int_least8_t = WGPU.C_CHAR;
    /**
     * {@snippet lang=c :
     * typedef short int_least16_t
     * }
     */
    public static final OfShort int_least16_t = WGPU.C_SHORT;
    /**
     * {@snippet lang=c :
     * typedef int int_least32_t
     * }
     */
    public static final OfInt int_least32_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef long long int_least64_t
     * }
     */
    public static final OfLong int_least64_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef unsigned char uint_least8_t
     * }
     */
    public static final OfByte uint_least8_t = WGPU.C_CHAR;
    /**
     * {@snippet lang=c :
     * typedef unsigned short uint_least16_t
     * }
     */
    public static final OfShort uint_least16_t = WGPU.C_SHORT;
    /**
     * {@snippet lang=c :
     * typedef unsigned int uint_least32_t
     * }
     */
    public static final OfInt uint_least32_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef unsigned long long uint_least64_t
     * }
     */
    public static final OfLong uint_least64_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef signed char int_fast8_t
     * }
     */
    public static final OfByte int_fast8_t = WGPU.C_CHAR;
    /**
     * {@snippet lang=c :
     * typedef int int_fast16_t
     * }
     */
    public static final OfInt int_fast16_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef int int_fast32_t
     * }
     */
    public static final OfInt int_fast32_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef long long int_fast64_t
     * }
     */
    public static final OfLong int_fast64_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef unsigned char uint_fast8_t
     * }
     */
    public static final OfByte uint_fast8_t = WGPU.C_CHAR;
    /**
     * {@snippet lang=c :
     * typedef unsigned int uint_fast16_t
     * }
     */
    public static final OfInt uint_fast16_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef unsigned int uint_fast32_t
     * }
     */
    public static final OfInt uint_fast32_t = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef unsigned long long uint_fast64_t
     * }
     */
    public static final OfLong uint_fast64_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef long long intmax_t
     * }
     */
    public static final OfLong intmax_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef unsigned long long uintmax_t
     * }
     */
    public static final OfLong uintmax_t = WGPU.C_LONG_LONG;
    /**
     * {@snippet lang=c :
     * typedef double max_align_t
     * }
     */
    public static final OfDouble max_align_t = WGPU.C_DOUBLE;
    /**
     * {@snippet lang=c :
     * typedef uint32_t WGPUFlags
     * }
     */
    public static final OfInt WGPUFlags = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef uint32_t WGPUBool
     * }
     */
    public static final OfInt WGPUBool = WGPU.C_INT;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUAdapterImpl *WGPUAdapter
     * }
     */
    public static final AddressLayout WGPUAdapter = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUBindGroupImpl *WGPUBindGroup
     * }
     */
    public static final AddressLayout WGPUBindGroup = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUBindGroupLayoutImpl *WGPUBindGroupLayout
     * }
     */
    public static final AddressLayout WGPUBindGroupLayout = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUBufferImpl *WGPUBuffer
     * }
     */
    public static final AddressLayout WGPUBuffer = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUCommandBufferImpl *WGPUCommandBuffer
     * }
     */
    public static final AddressLayout WGPUCommandBuffer = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUCommandEncoderImpl *WGPUCommandEncoder
     * }
     */
    public static final AddressLayout WGPUCommandEncoder = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUComputePassEncoderImpl *WGPUComputePassEncoder
     * }
     */
    public static final AddressLayout WGPUComputePassEncoder = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUComputePipelineImpl *WGPUComputePipeline
     * }
     */
    public static final AddressLayout WGPUComputePipeline = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUDeviceImpl *WGPUDevice
     * }
     */
    public static final AddressLayout WGPUDevice = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUInstanceImpl *WGPUInstance
     * }
     */
    public static final AddressLayout WGPUInstance = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUPipelineLayoutImpl *WGPUPipelineLayout
     * }
     */
    public static final AddressLayout WGPUPipelineLayout = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUQuerySetImpl *WGPUQuerySet
     * }
     */
    public static final AddressLayout WGPUQuerySet = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUQueueImpl *WGPUQueue
     * }
     */
    public static final AddressLayout WGPUQueue = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPURenderBundleImpl *WGPURenderBundle
     * }
     */
    public static final AddressLayout WGPURenderBundle = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPURenderBundleEncoderImpl *WGPURenderBundleEncoder
     * }
     */
    public static final AddressLayout WGPURenderBundleEncoder = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPURenderPassEncoderImpl *WGPURenderPassEncoder
     * }
     */
    public static final AddressLayout WGPURenderPassEncoder = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPURenderPipelineImpl *WGPURenderPipeline
     * }
     */
    public static final AddressLayout WGPURenderPipeline = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUSamplerImpl *WGPUSampler
     * }
     */
    public static final AddressLayout WGPUSampler = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUShaderModuleImpl *WGPUShaderModule
     * }
     */
    public static final AddressLayout WGPUShaderModule = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUSurfaceImpl *WGPUSurface
     * }
     */
    public static final AddressLayout WGPUSurface = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUTextureImpl *WGPUTexture
     * }
     */
    public static final AddressLayout WGPUTexture = WGPU.C_POINTER;
    /**
     * {@snippet lang=c :
     * typedef struct WGPUTextureViewImpl *WGPUTextureView
     * }
     */
    public static final AddressLayout WGPUTextureView = WGPU.C_POINTER;
    private static final int WGPUAdapterType_DiscreteGPU = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUAdapterType.WGPUAdapterType_DiscreteGPU = 0
     * }
     */
    public static int WGPUAdapterType_DiscreteGPU() {
        return WGPUAdapterType_DiscreteGPU;
    }
    private static final int WGPUAdapterType_IntegratedGPU = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUAdapterType.WGPUAdapterType_IntegratedGPU = 1
     * }
     */
    public static int WGPUAdapterType_IntegratedGPU() {
        return WGPUAdapterType_IntegratedGPU;
    }
    private static final int WGPUAdapterType_CPU = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUAdapterType.WGPUAdapterType_CPU = 2
     * }
     */
    public static int WGPUAdapterType_CPU() {
        return WGPUAdapterType_CPU;
    }
    private static final int WGPUAdapterType_Unknown = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUAdapterType.WGPUAdapterType_Unknown = 3
     * }
     */
    public static int WGPUAdapterType_Unknown() {
        return WGPUAdapterType_Unknown;
    }
    private static final int WGPUAdapterType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUAdapterType.WGPUAdapterType_Force32 = 2147483647
     * }
     */
    public static int WGPUAdapterType_Force32() {
        return WGPUAdapterType_Force32;
    }
    private static final int WGPUAddressMode_Repeat = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUAddressMode.WGPUAddressMode_Repeat = 0
     * }
     */
    public static int WGPUAddressMode_Repeat() {
        return WGPUAddressMode_Repeat;
    }
    private static final int WGPUAddressMode_MirrorRepeat = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUAddressMode.WGPUAddressMode_MirrorRepeat = 1
     * }
     */
    public static int WGPUAddressMode_MirrorRepeat() {
        return WGPUAddressMode_MirrorRepeat;
    }
    private static final int WGPUAddressMode_ClampToEdge = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUAddressMode.WGPUAddressMode_ClampToEdge = 2
     * }
     */
    public static int WGPUAddressMode_ClampToEdge() {
        return WGPUAddressMode_ClampToEdge;
    }
    private static final int WGPUAddressMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUAddressMode.WGPUAddressMode_Force32 = 2147483647
     * }
     */
    public static int WGPUAddressMode_Force32() {
        return WGPUAddressMode_Force32;
    }
    private static final int WGPUBackendType_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_Undefined = 0
     * }
     */
    public static int WGPUBackendType_Undefined() {
        return WGPUBackendType_Undefined;
    }
    private static final int WGPUBackendType_Null = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_Null = 1
     * }
     */
    public static int WGPUBackendType_Null() {
        return WGPUBackendType_Null;
    }
    private static final int WGPUBackendType_WebGPU = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_WebGPU = 2
     * }
     */
    public static int WGPUBackendType_WebGPU() {
        return WGPUBackendType_WebGPU;
    }
    private static final int WGPUBackendType_D3D11 = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_D3D11 = 3
     * }
     */
    public static int WGPUBackendType_D3D11() {
        return WGPUBackendType_D3D11;
    }
    private static final int WGPUBackendType_D3D12 = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_D3D12 = 4
     * }
     */
    public static int WGPUBackendType_D3D12() {
        return WGPUBackendType_D3D12;
    }
    private static final int WGPUBackendType_Metal = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_Metal = 5
     * }
     */
    public static int WGPUBackendType_Metal() {
        return WGPUBackendType_Metal;
    }
    private static final int WGPUBackendType_Vulkan = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_Vulkan = 6
     * }
     */
    public static int WGPUBackendType_Vulkan() {
        return WGPUBackendType_Vulkan;
    }
    private static final int WGPUBackendType_OpenGL = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_OpenGL = 7
     * }
     */
    public static int WGPUBackendType_OpenGL() {
        return WGPUBackendType_OpenGL;
    }
    private static final int WGPUBackendType_OpenGLES = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_OpenGLES = 8
     * }
     */
    public static int WGPUBackendType_OpenGLES() {
        return WGPUBackendType_OpenGLES;
    }
    private static final int WGPUBackendType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBackendType.WGPUBackendType_Force32 = 2147483647
     * }
     */
    public static int WGPUBackendType_Force32() {
        return WGPUBackendType_Force32;
    }
    private static final int WGPUBlendFactor_Zero = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_Zero = 0
     * }
     */
    public static int WGPUBlendFactor_Zero() {
        return WGPUBlendFactor_Zero;
    }
    private static final int WGPUBlendFactor_One = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_One = 1
     * }
     */
    public static int WGPUBlendFactor_One() {
        return WGPUBlendFactor_One;
    }
    private static final int WGPUBlendFactor_Src = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_Src = 2
     * }
     */
    public static int WGPUBlendFactor_Src() {
        return WGPUBlendFactor_Src;
    }
    private static final int WGPUBlendFactor_OneMinusSrc = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_OneMinusSrc = 3
     * }
     */
    public static int WGPUBlendFactor_OneMinusSrc() {
        return WGPUBlendFactor_OneMinusSrc;
    }
    private static final int WGPUBlendFactor_SrcAlpha = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_SrcAlpha = 4
     * }
     */
    public static int WGPUBlendFactor_SrcAlpha() {
        return WGPUBlendFactor_SrcAlpha;
    }
    private static final int WGPUBlendFactor_OneMinusSrcAlpha = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_OneMinusSrcAlpha = 5
     * }
     */
    public static int WGPUBlendFactor_OneMinusSrcAlpha() {
        return WGPUBlendFactor_OneMinusSrcAlpha;
    }
    private static final int WGPUBlendFactor_Dst = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_Dst = 6
     * }
     */
    public static int WGPUBlendFactor_Dst() {
        return WGPUBlendFactor_Dst;
    }
    private static final int WGPUBlendFactor_OneMinusDst = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_OneMinusDst = 7
     * }
     */
    public static int WGPUBlendFactor_OneMinusDst() {
        return WGPUBlendFactor_OneMinusDst;
    }
    private static final int WGPUBlendFactor_DstAlpha = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_DstAlpha = 8
     * }
     */
    public static int WGPUBlendFactor_DstAlpha() {
        return WGPUBlendFactor_DstAlpha;
    }
    private static final int WGPUBlendFactor_OneMinusDstAlpha = (int)9L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_OneMinusDstAlpha = 9
     * }
     */
    public static int WGPUBlendFactor_OneMinusDstAlpha() {
        return WGPUBlendFactor_OneMinusDstAlpha;
    }
    private static final int WGPUBlendFactor_SrcAlphaSaturated = (int)10L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_SrcAlphaSaturated = 10
     * }
     */
    public static int WGPUBlendFactor_SrcAlphaSaturated() {
        return WGPUBlendFactor_SrcAlphaSaturated;
    }
    private static final int WGPUBlendFactor_Constant = (int)11L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_Constant = 11
     * }
     */
    public static int WGPUBlendFactor_Constant() {
        return WGPUBlendFactor_Constant;
    }
    private static final int WGPUBlendFactor_OneMinusConstant = (int)12L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_OneMinusConstant = 12
     * }
     */
    public static int WGPUBlendFactor_OneMinusConstant() {
        return WGPUBlendFactor_OneMinusConstant;
    }
    private static final int WGPUBlendFactor_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendFactor.WGPUBlendFactor_Force32 = 2147483647
     * }
     */
    public static int WGPUBlendFactor_Force32() {
        return WGPUBlendFactor_Force32;
    }
    private static final int WGPUBlendOperation_Add = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendOperation.WGPUBlendOperation_Add = 0
     * }
     */
    public static int WGPUBlendOperation_Add() {
        return WGPUBlendOperation_Add;
    }
    private static final int WGPUBlendOperation_Subtract = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendOperation.WGPUBlendOperation_Subtract = 1
     * }
     */
    public static int WGPUBlendOperation_Subtract() {
        return WGPUBlendOperation_Subtract;
    }
    private static final int WGPUBlendOperation_ReverseSubtract = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendOperation.WGPUBlendOperation_ReverseSubtract = 2
     * }
     */
    public static int WGPUBlendOperation_ReverseSubtract() {
        return WGPUBlendOperation_ReverseSubtract;
    }
    private static final int WGPUBlendOperation_Min = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendOperation.WGPUBlendOperation_Min = 3
     * }
     */
    public static int WGPUBlendOperation_Min() {
        return WGPUBlendOperation_Min;
    }
    private static final int WGPUBlendOperation_Max = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendOperation.WGPUBlendOperation_Max = 4
     * }
     */
    public static int WGPUBlendOperation_Max() {
        return WGPUBlendOperation_Max;
    }
    private static final int WGPUBlendOperation_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBlendOperation.WGPUBlendOperation_Force32 = 2147483647
     * }
     */
    public static int WGPUBlendOperation_Force32() {
        return WGPUBlendOperation_Force32;
    }
    private static final int WGPUBufferBindingType_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferBindingType.WGPUBufferBindingType_Undefined = 0
     * }
     */
    public static int WGPUBufferBindingType_Undefined() {
        return WGPUBufferBindingType_Undefined;
    }
    private static final int WGPUBufferBindingType_Uniform = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferBindingType.WGPUBufferBindingType_Uniform = 1
     * }
     */
    public static int WGPUBufferBindingType_Uniform() {
        return WGPUBufferBindingType_Uniform;
    }
    private static final int WGPUBufferBindingType_Storage = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferBindingType.WGPUBufferBindingType_Storage = 2
     * }
     */
    public static int WGPUBufferBindingType_Storage() {
        return WGPUBufferBindingType_Storage;
    }
    private static final int WGPUBufferBindingType_ReadOnlyStorage = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferBindingType.WGPUBufferBindingType_ReadOnlyStorage = 3
     * }
     */
    public static int WGPUBufferBindingType_ReadOnlyStorage() {
        return WGPUBufferBindingType_ReadOnlyStorage;
    }
    private static final int WGPUBufferBindingType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferBindingType.WGPUBufferBindingType_Force32 = 2147483647
     * }
     */
    public static int WGPUBufferBindingType_Force32() {
        return WGPUBufferBindingType_Force32;
    }
    private static final int WGPUBufferMapAsyncStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_Success = 0
     * }
     */
    public static int WGPUBufferMapAsyncStatus_Success() {
        return WGPUBufferMapAsyncStatus_Success;
    }
    private static final int WGPUBufferMapAsyncStatus_ValidationError = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_ValidationError = 1
     * }
     */
    public static int WGPUBufferMapAsyncStatus_ValidationError() {
        return WGPUBufferMapAsyncStatus_ValidationError;
    }
    private static final int WGPUBufferMapAsyncStatus_Unknown = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_Unknown = 2
     * }
     */
    public static int WGPUBufferMapAsyncStatus_Unknown() {
        return WGPUBufferMapAsyncStatus_Unknown;
    }
    private static final int WGPUBufferMapAsyncStatus_DeviceLost = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_DeviceLost = 3
     * }
     */
    public static int WGPUBufferMapAsyncStatus_DeviceLost() {
        return WGPUBufferMapAsyncStatus_DeviceLost;
    }
    private static final int WGPUBufferMapAsyncStatus_DestroyedBeforeCallback = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_DestroyedBeforeCallback = 4
     * }
     */
    public static int WGPUBufferMapAsyncStatus_DestroyedBeforeCallback() {
        return WGPUBufferMapAsyncStatus_DestroyedBeforeCallback;
    }
    private static final int WGPUBufferMapAsyncStatus_UnmappedBeforeCallback = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_UnmappedBeforeCallback = 5
     * }
     */
    public static int WGPUBufferMapAsyncStatus_UnmappedBeforeCallback() {
        return WGPUBufferMapAsyncStatus_UnmappedBeforeCallback;
    }
    private static final int WGPUBufferMapAsyncStatus_MappingAlreadyPending = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_MappingAlreadyPending = 6
     * }
     */
    public static int WGPUBufferMapAsyncStatus_MappingAlreadyPending() {
        return WGPUBufferMapAsyncStatus_MappingAlreadyPending;
    }
    private static final int WGPUBufferMapAsyncStatus_OffsetOutOfRange = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_OffsetOutOfRange = 7
     * }
     */
    public static int WGPUBufferMapAsyncStatus_OffsetOutOfRange() {
        return WGPUBufferMapAsyncStatus_OffsetOutOfRange;
    }
    private static final int WGPUBufferMapAsyncStatus_SizeOutOfRange = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_SizeOutOfRange = 8
     * }
     */
    public static int WGPUBufferMapAsyncStatus_SizeOutOfRange() {
        return WGPUBufferMapAsyncStatus_SizeOutOfRange;
    }
    private static final int WGPUBufferMapAsyncStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapAsyncStatus.WGPUBufferMapAsyncStatus_Force32 = 2147483647
     * }
     */
    public static int WGPUBufferMapAsyncStatus_Force32() {
        return WGPUBufferMapAsyncStatus_Force32;
    }
    private static final int WGPUBufferMapState_Unmapped = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapState.WGPUBufferMapState_Unmapped = 0
     * }
     */
    public static int WGPUBufferMapState_Unmapped() {
        return WGPUBufferMapState_Unmapped;
    }
    private static final int WGPUBufferMapState_Pending = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapState.WGPUBufferMapState_Pending = 1
     * }
     */
    public static int WGPUBufferMapState_Pending() {
        return WGPUBufferMapState_Pending;
    }
    private static final int WGPUBufferMapState_Mapped = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapState.WGPUBufferMapState_Mapped = 2
     * }
     */
    public static int WGPUBufferMapState_Mapped() {
        return WGPUBufferMapState_Mapped;
    }
    private static final int WGPUBufferMapState_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferMapState.WGPUBufferMapState_Force32 = 2147483647
     * }
     */
    public static int WGPUBufferMapState_Force32() {
        return WGPUBufferMapState_Force32;
    }
    private static final int WGPUCompareFunction_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Undefined = 0
     * }
     */
    public static int WGPUCompareFunction_Undefined() {
        return WGPUCompareFunction_Undefined;
    }
    private static final int WGPUCompareFunction_Never = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Never = 1
     * }
     */
    public static int WGPUCompareFunction_Never() {
        return WGPUCompareFunction_Never;
    }
    private static final int WGPUCompareFunction_Less = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Less = 2
     * }
     */
    public static int WGPUCompareFunction_Less() {
        return WGPUCompareFunction_Less;
    }
    private static final int WGPUCompareFunction_LessEqual = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_LessEqual = 3
     * }
     */
    public static int WGPUCompareFunction_LessEqual() {
        return WGPUCompareFunction_LessEqual;
    }
    private static final int WGPUCompareFunction_Greater = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Greater = 4
     * }
     */
    public static int WGPUCompareFunction_Greater() {
        return WGPUCompareFunction_Greater;
    }
    private static final int WGPUCompareFunction_GreaterEqual = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_GreaterEqual = 5
     * }
     */
    public static int WGPUCompareFunction_GreaterEqual() {
        return WGPUCompareFunction_GreaterEqual;
    }
    private static final int WGPUCompareFunction_Equal = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Equal = 6
     * }
     */
    public static int WGPUCompareFunction_Equal() {
        return WGPUCompareFunction_Equal;
    }
    private static final int WGPUCompareFunction_NotEqual = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_NotEqual = 7
     * }
     */
    public static int WGPUCompareFunction_NotEqual() {
        return WGPUCompareFunction_NotEqual;
    }
    private static final int WGPUCompareFunction_Always = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Always = 8
     * }
     */
    public static int WGPUCompareFunction_Always() {
        return WGPUCompareFunction_Always;
    }
    private static final int WGPUCompareFunction_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompareFunction.WGPUCompareFunction_Force32 = 2147483647
     * }
     */
    public static int WGPUCompareFunction_Force32() {
        return WGPUCompareFunction_Force32;
    }
    private static final int WGPUCompilationInfoRequestStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationInfoRequestStatus.WGPUCompilationInfoRequestStatus_Success = 0
     * }
     */
    public static int WGPUCompilationInfoRequestStatus_Success() {
        return WGPUCompilationInfoRequestStatus_Success;
    }
    private static final int WGPUCompilationInfoRequestStatus_Error = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationInfoRequestStatus.WGPUCompilationInfoRequestStatus_Error = 1
     * }
     */
    public static int WGPUCompilationInfoRequestStatus_Error() {
        return WGPUCompilationInfoRequestStatus_Error;
    }
    private static final int WGPUCompilationInfoRequestStatus_DeviceLost = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationInfoRequestStatus.WGPUCompilationInfoRequestStatus_DeviceLost = 2
     * }
     */
    public static int WGPUCompilationInfoRequestStatus_DeviceLost() {
        return WGPUCompilationInfoRequestStatus_DeviceLost;
    }
    private static final int WGPUCompilationInfoRequestStatus_Unknown = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationInfoRequestStatus.WGPUCompilationInfoRequestStatus_Unknown = 3
     * }
     */
    public static int WGPUCompilationInfoRequestStatus_Unknown() {
        return WGPUCompilationInfoRequestStatus_Unknown;
    }
    private static final int WGPUCompilationInfoRequestStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationInfoRequestStatus.WGPUCompilationInfoRequestStatus_Force32 = 2147483647
     * }
     */
    public static int WGPUCompilationInfoRequestStatus_Force32() {
        return WGPUCompilationInfoRequestStatus_Force32;
    }
    private static final int WGPUCompilationMessageType_Error = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationMessageType.WGPUCompilationMessageType_Error = 0
     * }
     */
    public static int WGPUCompilationMessageType_Error() {
        return WGPUCompilationMessageType_Error;
    }
    private static final int WGPUCompilationMessageType_Warning = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationMessageType.WGPUCompilationMessageType_Warning = 1
     * }
     */
    public static int WGPUCompilationMessageType_Warning() {
        return WGPUCompilationMessageType_Warning;
    }
    private static final int WGPUCompilationMessageType_Info = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationMessageType.WGPUCompilationMessageType_Info = 2
     * }
     */
    public static int WGPUCompilationMessageType_Info() {
        return WGPUCompilationMessageType_Info;
    }
    private static final int WGPUCompilationMessageType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompilationMessageType.WGPUCompilationMessageType_Force32 = 2147483647
     * }
     */
    public static int WGPUCompilationMessageType_Force32() {
        return WGPUCompilationMessageType_Force32;
    }
    private static final int WGPUCompositeAlphaMode_Auto = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompositeAlphaMode.WGPUCompositeAlphaMode_Auto = 0
     * }
     */
    public static int WGPUCompositeAlphaMode_Auto() {
        return WGPUCompositeAlphaMode_Auto;
    }
    private static final int WGPUCompositeAlphaMode_Opaque = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompositeAlphaMode.WGPUCompositeAlphaMode_Opaque = 1
     * }
     */
    public static int WGPUCompositeAlphaMode_Opaque() {
        return WGPUCompositeAlphaMode_Opaque;
    }
    private static final int WGPUCompositeAlphaMode_Premultiplied = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompositeAlphaMode.WGPUCompositeAlphaMode_Premultiplied = 2
     * }
     */
    public static int WGPUCompositeAlphaMode_Premultiplied() {
        return WGPUCompositeAlphaMode_Premultiplied;
    }
    private static final int WGPUCompositeAlphaMode_Unpremultiplied = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompositeAlphaMode.WGPUCompositeAlphaMode_Unpremultiplied = 3
     * }
     */
    public static int WGPUCompositeAlphaMode_Unpremultiplied() {
        return WGPUCompositeAlphaMode_Unpremultiplied;
    }
    private static final int WGPUCompositeAlphaMode_Inherit = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompositeAlphaMode.WGPUCompositeAlphaMode_Inherit = 4
     * }
     */
    public static int WGPUCompositeAlphaMode_Inherit() {
        return WGPUCompositeAlphaMode_Inherit;
    }
    private static final int WGPUCompositeAlphaMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUCompositeAlphaMode.WGPUCompositeAlphaMode_Force32 = 2147483647
     * }
     */
    public static int WGPUCompositeAlphaMode_Force32() {
        return WGPUCompositeAlphaMode_Force32;
    }
    private static final int WGPUCreatePipelineAsyncStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_Success = 0
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_Success() {
        return WGPUCreatePipelineAsyncStatus_Success;
    }
    private static final int WGPUCreatePipelineAsyncStatus_ValidationError = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_ValidationError = 1
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_ValidationError() {
        return WGPUCreatePipelineAsyncStatus_ValidationError;
    }
    private static final int WGPUCreatePipelineAsyncStatus_InternalError = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_InternalError = 2
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_InternalError() {
        return WGPUCreatePipelineAsyncStatus_InternalError;
    }
    private static final int WGPUCreatePipelineAsyncStatus_DeviceLost = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_DeviceLost = 3
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_DeviceLost() {
        return WGPUCreatePipelineAsyncStatus_DeviceLost;
    }
    private static final int WGPUCreatePipelineAsyncStatus_DeviceDestroyed = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_DeviceDestroyed = 4
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_DeviceDestroyed() {
        return WGPUCreatePipelineAsyncStatus_DeviceDestroyed;
    }
    private static final int WGPUCreatePipelineAsyncStatus_Unknown = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_Unknown = 5
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_Unknown() {
        return WGPUCreatePipelineAsyncStatus_Unknown;
    }
    private static final int WGPUCreatePipelineAsyncStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUCreatePipelineAsyncStatus.WGPUCreatePipelineAsyncStatus_Force32 = 2147483647
     * }
     */
    public static int WGPUCreatePipelineAsyncStatus_Force32() {
        return WGPUCreatePipelineAsyncStatus_Force32;
    }
    private static final int WGPUCullMode_None = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUCullMode.WGPUCullMode_None = 0
     * }
     */
    public static int WGPUCullMode_None() {
        return WGPUCullMode_None;
    }
    private static final int WGPUCullMode_Front = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUCullMode.WGPUCullMode_Front = 1
     * }
     */
    public static int WGPUCullMode_Front() {
        return WGPUCullMode_Front;
    }
    private static final int WGPUCullMode_Back = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUCullMode.WGPUCullMode_Back = 2
     * }
     */
    public static int WGPUCullMode_Back() {
        return WGPUCullMode_Back;
    }
    private static final int WGPUCullMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUCullMode.WGPUCullMode_Force32 = 2147483647
     * }
     */
    public static int WGPUCullMode_Force32() {
        return WGPUCullMode_Force32;
    }
    private static final int WGPUDeviceLostReason_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUDeviceLostReason.WGPUDeviceLostReason_Undefined = 0
     * }
     */
    public static int WGPUDeviceLostReason_Undefined() {
        return WGPUDeviceLostReason_Undefined;
    }
    private static final int WGPUDeviceLostReason_Destroyed = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUDeviceLostReason.WGPUDeviceLostReason_Destroyed = 1
     * }
     */
    public static int WGPUDeviceLostReason_Destroyed() {
        return WGPUDeviceLostReason_Destroyed;
    }
    private static final int WGPUDeviceLostReason_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUDeviceLostReason.WGPUDeviceLostReason_Force32 = 2147483647
     * }
     */
    public static int WGPUDeviceLostReason_Force32() {
        return WGPUDeviceLostReason_Force32;
    }
    private static final int WGPUErrorFilter_Validation = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorFilter.WGPUErrorFilter_Validation = 0
     * }
     */
    public static int WGPUErrorFilter_Validation() {
        return WGPUErrorFilter_Validation;
    }
    private static final int WGPUErrorFilter_OutOfMemory = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorFilter.WGPUErrorFilter_OutOfMemory = 1
     * }
     */
    public static int WGPUErrorFilter_OutOfMemory() {
        return WGPUErrorFilter_OutOfMemory;
    }
    private static final int WGPUErrorFilter_Internal = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorFilter.WGPUErrorFilter_Internal = 2
     * }
     */
    public static int WGPUErrorFilter_Internal() {
        return WGPUErrorFilter_Internal;
    }
    private static final int WGPUErrorFilter_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorFilter.WGPUErrorFilter_Force32 = 2147483647
     * }
     */
    public static int WGPUErrorFilter_Force32() {
        return WGPUErrorFilter_Force32;
    }
    private static final int WGPUErrorType_NoError = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_NoError = 0
     * }
     */
    public static int WGPUErrorType_NoError() {
        return WGPUErrorType_NoError;
    }
    private static final int WGPUErrorType_Validation = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_Validation = 1
     * }
     */
    public static int WGPUErrorType_Validation() {
        return WGPUErrorType_Validation;
    }
    private static final int WGPUErrorType_OutOfMemory = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_OutOfMemory = 2
     * }
     */
    public static int WGPUErrorType_OutOfMemory() {
        return WGPUErrorType_OutOfMemory;
    }
    private static final int WGPUErrorType_Internal = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_Internal = 3
     * }
     */
    public static int WGPUErrorType_Internal() {
        return WGPUErrorType_Internal;
    }
    private static final int WGPUErrorType_Unknown = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_Unknown = 4
     * }
     */
    public static int WGPUErrorType_Unknown() {
        return WGPUErrorType_Unknown;
    }
    private static final int WGPUErrorType_DeviceLost = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_DeviceLost = 5
     * }
     */
    public static int WGPUErrorType_DeviceLost() {
        return WGPUErrorType_DeviceLost;
    }
    private static final int WGPUErrorType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUErrorType.WGPUErrorType_Force32 = 2147483647
     * }
     */
    public static int WGPUErrorType_Force32() {
        return WGPUErrorType_Force32;
    }
    private static final int WGPUFeatureName_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_Undefined = 0
     * }
     */
    public static int WGPUFeatureName_Undefined() {
        return WGPUFeatureName_Undefined;
    }
    private static final int WGPUFeatureName_DepthClipControl = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_DepthClipControl = 1
     * }
     */
    public static int WGPUFeatureName_DepthClipControl() {
        return WGPUFeatureName_DepthClipControl;
    }
    private static final int WGPUFeatureName_Depth32FloatStencil8 = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_Depth32FloatStencil8 = 2
     * }
     */
    public static int WGPUFeatureName_Depth32FloatStencil8() {
        return WGPUFeatureName_Depth32FloatStencil8;
    }
    private static final int WGPUFeatureName_TimestampQuery = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_TimestampQuery = 3
     * }
     */
    public static int WGPUFeatureName_TimestampQuery() {
        return WGPUFeatureName_TimestampQuery;
    }
    private static final int WGPUFeatureName_TextureCompressionBC = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_TextureCompressionBC = 4
     * }
     */
    public static int WGPUFeatureName_TextureCompressionBC() {
        return WGPUFeatureName_TextureCompressionBC;
    }
    private static final int WGPUFeatureName_TextureCompressionETC2 = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_TextureCompressionETC2 = 5
     * }
     */
    public static int WGPUFeatureName_TextureCompressionETC2() {
        return WGPUFeatureName_TextureCompressionETC2;
    }
    private static final int WGPUFeatureName_TextureCompressionASTC = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_TextureCompressionASTC = 6
     * }
     */
    public static int WGPUFeatureName_TextureCompressionASTC() {
        return WGPUFeatureName_TextureCompressionASTC;
    }
    private static final int WGPUFeatureName_IndirectFirstInstance = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_IndirectFirstInstance = 7
     * }
     */
    public static int WGPUFeatureName_IndirectFirstInstance() {
        return WGPUFeatureName_IndirectFirstInstance;
    }
    private static final int WGPUFeatureName_ShaderF16 = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_ShaderF16 = 8
     * }
     */
    public static int WGPUFeatureName_ShaderF16() {
        return WGPUFeatureName_ShaderF16;
    }
    private static final int WGPUFeatureName_RG11B10UfloatRenderable = (int)9L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_RG11B10UfloatRenderable = 9
     * }
     */
    public static int WGPUFeatureName_RG11B10UfloatRenderable() {
        return WGPUFeatureName_RG11B10UfloatRenderable;
    }
    private static final int WGPUFeatureName_BGRA8UnormStorage = (int)10L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_BGRA8UnormStorage = 10
     * }
     */
    public static int WGPUFeatureName_BGRA8UnormStorage() {
        return WGPUFeatureName_BGRA8UnormStorage;
    }
    private static final int WGPUFeatureName_Float32Filterable = (int)11L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_Float32Filterable = 11
     * }
     */
    public static int WGPUFeatureName_Float32Filterable() {
        return WGPUFeatureName_Float32Filterable;
    }
    private static final int WGPUFeatureName_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUFeatureName.WGPUFeatureName_Force32 = 2147483647
     * }
     */
    public static int WGPUFeatureName_Force32() {
        return WGPUFeatureName_Force32;
    }
    private static final int WGPUFilterMode_Nearest = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUFilterMode.WGPUFilterMode_Nearest = 0
     * }
     */
    public static int WGPUFilterMode_Nearest() {
        return WGPUFilterMode_Nearest;
    }
    private static final int WGPUFilterMode_Linear = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUFilterMode.WGPUFilterMode_Linear = 1
     * }
     */
    public static int WGPUFilterMode_Linear() {
        return WGPUFilterMode_Linear;
    }
    private static final int WGPUFilterMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUFilterMode.WGPUFilterMode_Force32 = 2147483647
     * }
     */
    public static int WGPUFilterMode_Force32() {
        return WGPUFilterMode_Force32;
    }
    private static final int WGPUFrontFace_CCW = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUFrontFace.WGPUFrontFace_CCW = 0
     * }
     */
    public static int WGPUFrontFace_CCW() {
        return WGPUFrontFace_CCW;
    }
    private static final int WGPUFrontFace_CW = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUFrontFace.WGPUFrontFace_CW = 1
     * }
     */
    public static int WGPUFrontFace_CW() {
        return WGPUFrontFace_CW;
    }
    private static final int WGPUFrontFace_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUFrontFace.WGPUFrontFace_Force32 = 2147483647
     * }
     */
    public static int WGPUFrontFace_Force32() {
        return WGPUFrontFace_Force32;
    }
    private static final int WGPUIndexFormat_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUIndexFormat.WGPUIndexFormat_Undefined = 0
     * }
     */
    public static int WGPUIndexFormat_Undefined() {
        return WGPUIndexFormat_Undefined;
    }
    private static final int WGPUIndexFormat_Uint16 = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUIndexFormat.WGPUIndexFormat_Uint16 = 1
     * }
     */
    public static int WGPUIndexFormat_Uint16() {
        return WGPUIndexFormat_Uint16;
    }
    private static final int WGPUIndexFormat_Uint32 = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUIndexFormat.WGPUIndexFormat_Uint32 = 2
     * }
     */
    public static int WGPUIndexFormat_Uint32() {
        return WGPUIndexFormat_Uint32;
    }
    private static final int WGPUIndexFormat_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUIndexFormat.WGPUIndexFormat_Force32 = 2147483647
     * }
     */
    public static int WGPUIndexFormat_Force32() {
        return WGPUIndexFormat_Force32;
    }
    private static final int WGPULoadOp_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPULoadOp.WGPULoadOp_Undefined = 0
     * }
     */
    public static int WGPULoadOp_Undefined() {
        return WGPULoadOp_Undefined;
    }
    private static final int WGPULoadOp_Clear = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPULoadOp.WGPULoadOp_Clear = 1
     * }
     */
    public static int WGPULoadOp_Clear() {
        return WGPULoadOp_Clear;
    }
    private static final int WGPULoadOp_Load = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPULoadOp.WGPULoadOp_Load = 2
     * }
     */
    public static int WGPULoadOp_Load() {
        return WGPULoadOp_Load;
    }
    private static final int WGPULoadOp_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPULoadOp.WGPULoadOp_Force32 = 2147483647
     * }
     */
    public static int WGPULoadOp_Force32() {
        return WGPULoadOp_Force32;
    }
    private static final int WGPUMipmapFilterMode_Nearest = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUMipmapFilterMode.WGPUMipmapFilterMode_Nearest = 0
     * }
     */
    public static int WGPUMipmapFilterMode_Nearest() {
        return WGPUMipmapFilterMode_Nearest;
    }
    private static final int WGPUMipmapFilterMode_Linear = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUMipmapFilterMode.WGPUMipmapFilterMode_Linear = 1
     * }
     */
    public static int WGPUMipmapFilterMode_Linear() {
        return WGPUMipmapFilterMode_Linear;
    }
    private static final int WGPUMipmapFilterMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUMipmapFilterMode.WGPUMipmapFilterMode_Force32 = 2147483647
     * }
     */
    public static int WGPUMipmapFilterMode_Force32() {
        return WGPUMipmapFilterMode_Force32;
    }
    private static final int WGPUPowerPreference_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUPowerPreference.WGPUPowerPreference_Undefined = 0
     * }
     */
    public static int WGPUPowerPreference_Undefined() {
        return WGPUPowerPreference_Undefined;
    }
    private static final int WGPUPowerPreference_LowPower = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUPowerPreference.WGPUPowerPreference_LowPower = 1
     * }
     */
    public static int WGPUPowerPreference_LowPower() {
        return WGPUPowerPreference_LowPower;
    }
    private static final int WGPUPowerPreference_HighPerformance = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUPowerPreference.WGPUPowerPreference_HighPerformance = 2
     * }
     */
    public static int WGPUPowerPreference_HighPerformance() {
        return WGPUPowerPreference_HighPerformance;
    }
    private static final int WGPUPowerPreference_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUPowerPreference.WGPUPowerPreference_Force32 = 2147483647
     * }
     */
    public static int WGPUPowerPreference_Force32() {
        return WGPUPowerPreference_Force32;
    }
    private static final int WGPUPresentMode_Fifo = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUPresentMode.WGPUPresentMode_Fifo = 0
     * }
     */
    public static int WGPUPresentMode_Fifo() {
        return WGPUPresentMode_Fifo;
    }
    private static final int WGPUPresentMode_FifoRelaxed = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUPresentMode.WGPUPresentMode_FifoRelaxed = 1
     * }
     */
    public static int WGPUPresentMode_FifoRelaxed() {
        return WGPUPresentMode_FifoRelaxed;
    }
    private static final int WGPUPresentMode_Immediate = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUPresentMode.WGPUPresentMode_Immediate = 2
     * }
     */
    public static int WGPUPresentMode_Immediate() {
        return WGPUPresentMode_Immediate;
    }
    private static final int WGPUPresentMode_Mailbox = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUPresentMode.WGPUPresentMode_Mailbox = 3
     * }
     */
    public static int WGPUPresentMode_Mailbox() {
        return WGPUPresentMode_Mailbox;
    }
    private static final int WGPUPresentMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUPresentMode.WGPUPresentMode_Force32 = 2147483647
     * }
     */
    public static int WGPUPresentMode_Force32() {
        return WGPUPresentMode_Force32;
    }
    private static final int WGPUPrimitiveTopology_PointList = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUPrimitiveTopology.WGPUPrimitiveTopology_PointList = 0
     * }
     */
    public static int WGPUPrimitiveTopology_PointList() {
        return WGPUPrimitiveTopology_PointList;
    }
    private static final int WGPUPrimitiveTopology_LineList = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUPrimitiveTopology.WGPUPrimitiveTopology_LineList = 1
     * }
     */
    public static int WGPUPrimitiveTopology_LineList() {
        return WGPUPrimitiveTopology_LineList;
    }
    private static final int WGPUPrimitiveTopology_LineStrip = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUPrimitiveTopology.WGPUPrimitiveTopology_LineStrip = 2
     * }
     */
    public static int WGPUPrimitiveTopology_LineStrip() {
        return WGPUPrimitiveTopology_LineStrip;
    }
    private static final int WGPUPrimitiveTopology_TriangleList = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUPrimitiveTopology.WGPUPrimitiveTopology_TriangleList = 3
     * }
     */
    public static int WGPUPrimitiveTopology_TriangleList() {
        return WGPUPrimitiveTopology_TriangleList;
    }
    private static final int WGPUPrimitiveTopology_TriangleStrip = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUPrimitiveTopology.WGPUPrimitiveTopology_TriangleStrip = 4
     * }
     */
    public static int WGPUPrimitiveTopology_TriangleStrip() {
        return WGPUPrimitiveTopology_TriangleStrip;
    }
    private static final int WGPUPrimitiveTopology_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUPrimitiveTopology.WGPUPrimitiveTopology_Force32 = 2147483647
     * }
     */
    public static int WGPUPrimitiveTopology_Force32() {
        return WGPUPrimitiveTopology_Force32;
    }
    private static final int WGPUQueryType_Occlusion = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueryType.WGPUQueryType_Occlusion = 0
     * }
     */
    public static int WGPUQueryType_Occlusion() {
        return WGPUQueryType_Occlusion;
    }
    private static final int WGPUQueryType_Timestamp = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueryType.WGPUQueryType_Timestamp = 1
     * }
     */
    public static int WGPUQueryType_Timestamp() {
        return WGPUQueryType_Timestamp;
    }
    private static final int WGPUQueryType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueryType.WGPUQueryType_Force32 = 2147483647
     * }
     */
    public static int WGPUQueryType_Force32() {
        return WGPUQueryType_Force32;
    }
    private static final int WGPUQueueWorkDoneStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueueWorkDoneStatus.WGPUQueueWorkDoneStatus_Success = 0
     * }
     */
    public static int WGPUQueueWorkDoneStatus_Success() {
        return WGPUQueueWorkDoneStatus_Success;
    }
    private static final int WGPUQueueWorkDoneStatus_Error = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueueWorkDoneStatus.WGPUQueueWorkDoneStatus_Error = 1
     * }
     */
    public static int WGPUQueueWorkDoneStatus_Error() {
        return WGPUQueueWorkDoneStatus_Error;
    }
    private static final int WGPUQueueWorkDoneStatus_Unknown = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueueWorkDoneStatus.WGPUQueueWorkDoneStatus_Unknown = 2
     * }
     */
    public static int WGPUQueueWorkDoneStatus_Unknown() {
        return WGPUQueueWorkDoneStatus_Unknown;
    }
    private static final int WGPUQueueWorkDoneStatus_DeviceLost = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueueWorkDoneStatus.WGPUQueueWorkDoneStatus_DeviceLost = 3
     * }
     */
    public static int WGPUQueueWorkDoneStatus_DeviceLost() {
        return WGPUQueueWorkDoneStatus_DeviceLost;
    }
    private static final int WGPUQueueWorkDoneStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUQueueWorkDoneStatus.WGPUQueueWorkDoneStatus_Force32 = 2147483647
     * }
     */
    public static int WGPUQueueWorkDoneStatus_Force32() {
        return WGPUQueueWorkDoneStatus_Force32;
    }
    private static final int WGPURequestAdapterStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestAdapterStatus.WGPURequestAdapterStatus_Success = 0
     * }
     */
    public static int WGPURequestAdapterStatus_Success() {
        return WGPURequestAdapterStatus_Success;
    }
    private static final int WGPURequestAdapterStatus_Unavailable = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestAdapterStatus.WGPURequestAdapterStatus_Unavailable = 1
     * }
     */
    public static int WGPURequestAdapterStatus_Unavailable() {
        return WGPURequestAdapterStatus_Unavailable;
    }
    private static final int WGPURequestAdapterStatus_Error = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestAdapterStatus.WGPURequestAdapterStatus_Error = 2
     * }
     */
    public static int WGPURequestAdapterStatus_Error() {
        return WGPURequestAdapterStatus_Error;
    }
    private static final int WGPURequestAdapterStatus_Unknown = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestAdapterStatus.WGPURequestAdapterStatus_Unknown = 3
     * }
     */
    public static int WGPURequestAdapterStatus_Unknown() {
        return WGPURequestAdapterStatus_Unknown;
    }
    private static final int WGPURequestAdapterStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestAdapterStatus.WGPURequestAdapterStatus_Force32 = 2147483647
     * }
     */
    public static int WGPURequestAdapterStatus_Force32() {
        return WGPURequestAdapterStatus_Force32;
    }
    private static final int WGPURequestDeviceStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestDeviceStatus.WGPURequestDeviceStatus_Success = 0
     * }
     */
    public static int WGPURequestDeviceStatus_Success() {
        return WGPURequestDeviceStatus_Success;
    }
    private static final int WGPURequestDeviceStatus_Error = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestDeviceStatus.WGPURequestDeviceStatus_Error = 1
     * }
     */
    public static int WGPURequestDeviceStatus_Error() {
        return WGPURequestDeviceStatus_Error;
    }
    private static final int WGPURequestDeviceStatus_Unknown = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestDeviceStatus.WGPURequestDeviceStatus_Unknown = 2
     * }
     */
    public static int WGPURequestDeviceStatus_Unknown() {
        return WGPURequestDeviceStatus_Unknown;
    }
    private static final int WGPURequestDeviceStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPURequestDeviceStatus.WGPURequestDeviceStatus_Force32 = 2147483647
     * }
     */
    public static int WGPURequestDeviceStatus_Force32() {
        return WGPURequestDeviceStatus_Force32;
    }
    private static final int WGPUSType_Invalid = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_Invalid = 0
     * }
     */
    public static int WGPUSType_Invalid() {
        return WGPUSType_Invalid;
    }
    private static final int WGPUSType_SurfaceDescriptorFromMetalLayer = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromMetalLayer = 1
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromMetalLayer() {
        return WGPUSType_SurfaceDescriptorFromMetalLayer;
    }
    private static final int WGPUSType_SurfaceDescriptorFromWindowsHWND = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromWindowsHWND = 2
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromWindowsHWND() {
        return WGPUSType_SurfaceDescriptorFromWindowsHWND;
    }
    private static final int WGPUSType_SurfaceDescriptorFromXlibWindow = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromXlibWindow = 3
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromXlibWindow() {
        return WGPUSType_SurfaceDescriptorFromXlibWindow;
    }
    private static final int WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector = 4
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector() {
        return WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector;
    }
    private static final int WGPUSType_ShaderModuleSPIRVDescriptor = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_ShaderModuleSPIRVDescriptor = 5
     * }
     */
    public static int WGPUSType_ShaderModuleSPIRVDescriptor() {
        return WGPUSType_ShaderModuleSPIRVDescriptor;
    }
    private static final int WGPUSType_ShaderModuleWGSLDescriptor = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_ShaderModuleWGSLDescriptor = 6
     * }
     */
    public static int WGPUSType_ShaderModuleWGSLDescriptor() {
        return WGPUSType_ShaderModuleWGSLDescriptor;
    }
    private static final int WGPUSType_PrimitiveDepthClipControl = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_PrimitiveDepthClipControl = 7
     * }
     */
    public static int WGPUSType_PrimitiveDepthClipControl() {
        return WGPUSType_PrimitiveDepthClipControl;
    }
    private static final int WGPUSType_SurfaceDescriptorFromWaylandSurface = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromWaylandSurface = 8
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromWaylandSurface() {
        return WGPUSType_SurfaceDescriptorFromWaylandSurface;
    }
    private static final int WGPUSType_SurfaceDescriptorFromAndroidNativeWindow = (int)9L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromAndroidNativeWindow = 9
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromAndroidNativeWindow() {
        return WGPUSType_SurfaceDescriptorFromAndroidNativeWindow;
    }
    private static final int WGPUSType_SurfaceDescriptorFromXcbWindow = (int)10L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_SurfaceDescriptorFromXcbWindow = 10
     * }
     */
    public static int WGPUSType_SurfaceDescriptorFromXcbWindow() {
        return WGPUSType_SurfaceDescriptorFromXcbWindow;
    }
    private static final int WGPUSType_RenderPassDescriptorMaxDrawCount = (int)15L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_RenderPassDescriptorMaxDrawCount = 15
     * }
     */
    public static int WGPUSType_RenderPassDescriptorMaxDrawCount() {
        return WGPUSType_RenderPassDescriptorMaxDrawCount;
    }
    private static final int WGPUSType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUSType.WGPUSType_Force32 = 2147483647
     * }
     */
    public static int WGPUSType_Force32() {
        return WGPUSType_Force32;
    }
    private static final int WGPUSamplerBindingType_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUSamplerBindingType.WGPUSamplerBindingType_Undefined = 0
     * }
     */
    public static int WGPUSamplerBindingType_Undefined() {
        return WGPUSamplerBindingType_Undefined;
    }
    private static final int WGPUSamplerBindingType_Filtering = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUSamplerBindingType.WGPUSamplerBindingType_Filtering = 1
     * }
     */
    public static int WGPUSamplerBindingType_Filtering() {
        return WGPUSamplerBindingType_Filtering;
    }
    private static final int WGPUSamplerBindingType_NonFiltering = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUSamplerBindingType.WGPUSamplerBindingType_NonFiltering = 2
     * }
     */
    public static int WGPUSamplerBindingType_NonFiltering() {
        return WGPUSamplerBindingType_NonFiltering;
    }
    private static final int WGPUSamplerBindingType_Comparison = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUSamplerBindingType.WGPUSamplerBindingType_Comparison = 3
     * }
     */
    public static int WGPUSamplerBindingType_Comparison() {
        return WGPUSamplerBindingType_Comparison;
    }
    private static final int WGPUSamplerBindingType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUSamplerBindingType.WGPUSamplerBindingType_Force32 = 2147483647
     * }
     */
    public static int WGPUSamplerBindingType_Force32() {
        return WGPUSamplerBindingType_Force32;
    }
    private static final int WGPUStencilOperation_Keep = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_Keep = 0
     * }
     */
    public static int WGPUStencilOperation_Keep() {
        return WGPUStencilOperation_Keep;
    }
    private static final int WGPUStencilOperation_Zero = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_Zero = 1
     * }
     */
    public static int WGPUStencilOperation_Zero() {
        return WGPUStencilOperation_Zero;
    }
    private static final int WGPUStencilOperation_Replace = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_Replace = 2
     * }
     */
    public static int WGPUStencilOperation_Replace() {
        return WGPUStencilOperation_Replace;
    }
    private static final int WGPUStencilOperation_Invert = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_Invert = 3
     * }
     */
    public static int WGPUStencilOperation_Invert() {
        return WGPUStencilOperation_Invert;
    }
    private static final int WGPUStencilOperation_IncrementClamp = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_IncrementClamp = 4
     * }
     */
    public static int WGPUStencilOperation_IncrementClamp() {
        return WGPUStencilOperation_IncrementClamp;
    }
    private static final int WGPUStencilOperation_DecrementClamp = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_DecrementClamp = 5
     * }
     */
    public static int WGPUStencilOperation_DecrementClamp() {
        return WGPUStencilOperation_DecrementClamp;
    }
    private static final int WGPUStencilOperation_IncrementWrap = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_IncrementWrap = 6
     * }
     */
    public static int WGPUStencilOperation_IncrementWrap() {
        return WGPUStencilOperation_IncrementWrap;
    }
    private static final int WGPUStencilOperation_DecrementWrap = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_DecrementWrap = 7
     * }
     */
    public static int WGPUStencilOperation_DecrementWrap() {
        return WGPUStencilOperation_DecrementWrap;
    }
    private static final int WGPUStencilOperation_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUStencilOperation.WGPUStencilOperation_Force32 = 2147483647
     * }
     */
    public static int WGPUStencilOperation_Force32() {
        return WGPUStencilOperation_Force32;
    }
    private static final int WGPUStorageTextureAccess_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUStorageTextureAccess.WGPUStorageTextureAccess_Undefined = 0
     * }
     */
    public static int WGPUStorageTextureAccess_Undefined() {
        return WGPUStorageTextureAccess_Undefined;
    }
    private static final int WGPUStorageTextureAccess_WriteOnly = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUStorageTextureAccess.WGPUStorageTextureAccess_WriteOnly = 1
     * }
     */
    public static int WGPUStorageTextureAccess_WriteOnly() {
        return WGPUStorageTextureAccess_WriteOnly;
    }
    private static final int WGPUStorageTextureAccess_ReadOnly = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUStorageTextureAccess.WGPUStorageTextureAccess_ReadOnly = 2
     * }
     */
    public static int WGPUStorageTextureAccess_ReadOnly() {
        return WGPUStorageTextureAccess_ReadOnly;
    }
    private static final int WGPUStorageTextureAccess_ReadWrite = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUStorageTextureAccess.WGPUStorageTextureAccess_ReadWrite = 3
     * }
     */
    public static int WGPUStorageTextureAccess_ReadWrite() {
        return WGPUStorageTextureAccess_ReadWrite;
    }
    private static final int WGPUStorageTextureAccess_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUStorageTextureAccess.WGPUStorageTextureAccess_Force32 = 2147483647
     * }
     */
    public static int WGPUStorageTextureAccess_Force32() {
        return WGPUStorageTextureAccess_Force32;
    }
    private static final int WGPUStoreOp_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUStoreOp.WGPUStoreOp_Undefined = 0
     * }
     */
    public static int WGPUStoreOp_Undefined() {
        return WGPUStoreOp_Undefined;
    }
    private static final int WGPUStoreOp_Store = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUStoreOp.WGPUStoreOp_Store = 1
     * }
     */
    public static int WGPUStoreOp_Store() {
        return WGPUStoreOp_Store;
    }
    private static final int WGPUStoreOp_Discard = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUStoreOp.WGPUStoreOp_Discard = 2
     * }
     */
    public static int WGPUStoreOp_Discard() {
        return WGPUStoreOp_Discard;
    }
    private static final int WGPUStoreOp_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUStoreOp.WGPUStoreOp_Force32 = 2147483647
     * }
     */
    public static int WGPUStoreOp_Force32() {
        return WGPUStoreOp_Force32;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_Success = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_Success = 0
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_Success() {
        return WGPUSurfaceGetCurrentTextureStatus_Success;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_Timeout = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_Timeout = 1
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_Timeout() {
        return WGPUSurfaceGetCurrentTextureStatus_Timeout;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_Outdated = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_Outdated = 2
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_Outdated() {
        return WGPUSurfaceGetCurrentTextureStatus_Outdated;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_Lost = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_Lost = 3
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_Lost() {
        return WGPUSurfaceGetCurrentTextureStatus_Lost;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_OutOfMemory = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_OutOfMemory = 4
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_OutOfMemory() {
        return WGPUSurfaceGetCurrentTextureStatus_OutOfMemory;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_DeviceLost = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_DeviceLost = 5
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_DeviceLost() {
        return WGPUSurfaceGetCurrentTextureStatus_DeviceLost;
    }
    private static final int WGPUSurfaceGetCurrentTextureStatus_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_Force32 = 2147483647
     * }
     */
    public static int WGPUSurfaceGetCurrentTextureStatus_Force32() {
        return WGPUSurfaceGetCurrentTextureStatus_Force32;
    }
    private static final int WGPUTextureAspect_All = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureAspect.WGPUTextureAspect_All = 0
     * }
     */
    public static int WGPUTextureAspect_All() {
        return WGPUTextureAspect_All;
    }
    private static final int WGPUTextureAspect_StencilOnly = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureAspect.WGPUTextureAspect_StencilOnly = 1
     * }
     */
    public static int WGPUTextureAspect_StencilOnly() {
        return WGPUTextureAspect_StencilOnly;
    }
    private static final int WGPUTextureAspect_DepthOnly = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureAspect.WGPUTextureAspect_DepthOnly = 2
     * }
     */
    public static int WGPUTextureAspect_DepthOnly() {
        return WGPUTextureAspect_DepthOnly;
    }
    private static final int WGPUTextureAspect_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureAspect.WGPUTextureAspect_Force32 = 2147483647
     * }
     */
    public static int WGPUTextureAspect_Force32() {
        return WGPUTextureAspect_Force32;
    }
    private static final int WGPUTextureDimension_1D = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureDimension.WGPUTextureDimension_1D = 0
     * }
     */
    public static int WGPUTextureDimension_1D() {
        return WGPUTextureDimension_1D;
    }
    private static final int WGPUTextureDimension_2D = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureDimension.WGPUTextureDimension_2D = 1
     * }
     */
    public static int WGPUTextureDimension_2D() {
        return WGPUTextureDimension_2D;
    }
    private static final int WGPUTextureDimension_3D = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureDimension.WGPUTextureDimension_3D = 2
     * }
     */
    public static int WGPUTextureDimension_3D() {
        return WGPUTextureDimension_3D;
    }
    private static final int WGPUTextureDimension_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureDimension.WGPUTextureDimension_Force32 = 2147483647
     * }
     */
    public static int WGPUTextureDimension_Force32() {
        return WGPUTextureDimension_Force32;
    }
    private static final int WGPUTextureFormat_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Undefined = 0
     * }
     */
    public static int WGPUTextureFormat_Undefined() {
        return WGPUTextureFormat_Undefined;
    }
    private static final int WGPUTextureFormat_R8Unorm = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R8Unorm = 1
     * }
     */
    public static int WGPUTextureFormat_R8Unorm() {
        return WGPUTextureFormat_R8Unorm;
    }
    private static final int WGPUTextureFormat_R8Snorm = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R8Snorm = 2
     * }
     */
    public static int WGPUTextureFormat_R8Snorm() {
        return WGPUTextureFormat_R8Snorm;
    }
    private static final int WGPUTextureFormat_R8Uint = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R8Uint = 3
     * }
     */
    public static int WGPUTextureFormat_R8Uint() {
        return WGPUTextureFormat_R8Uint;
    }
    private static final int WGPUTextureFormat_R8Sint = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R8Sint = 4
     * }
     */
    public static int WGPUTextureFormat_R8Sint() {
        return WGPUTextureFormat_R8Sint;
    }
    private static final int WGPUTextureFormat_R16Uint = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R16Uint = 5
     * }
     */
    public static int WGPUTextureFormat_R16Uint() {
        return WGPUTextureFormat_R16Uint;
    }
    private static final int WGPUTextureFormat_R16Sint = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R16Sint = 6
     * }
     */
    public static int WGPUTextureFormat_R16Sint() {
        return WGPUTextureFormat_R16Sint;
    }
    private static final int WGPUTextureFormat_R16Float = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R16Float = 7
     * }
     */
    public static int WGPUTextureFormat_R16Float() {
        return WGPUTextureFormat_R16Float;
    }
    private static final int WGPUTextureFormat_RG8Unorm = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG8Unorm = 8
     * }
     */
    public static int WGPUTextureFormat_RG8Unorm() {
        return WGPUTextureFormat_RG8Unorm;
    }
    private static final int WGPUTextureFormat_RG8Snorm = (int)9L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG8Snorm = 9
     * }
     */
    public static int WGPUTextureFormat_RG8Snorm() {
        return WGPUTextureFormat_RG8Snorm;
    }
    private static final int WGPUTextureFormat_RG8Uint = (int)10L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG8Uint = 10
     * }
     */
    public static int WGPUTextureFormat_RG8Uint() {
        return WGPUTextureFormat_RG8Uint;
    }
    private static final int WGPUTextureFormat_RG8Sint = (int)11L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG8Sint = 11
     * }
     */
    public static int WGPUTextureFormat_RG8Sint() {
        return WGPUTextureFormat_RG8Sint;
    }
    private static final int WGPUTextureFormat_R32Float = (int)12L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R32Float = 12
     * }
     */
    public static int WGPUTextureFormat_R32Float() {
        return WGPUTextureFormat_R32Float;
    }
    private static final int WGPUTextureFormat_R32Uint = (int)13L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R32Uint = 13
     * }
     */
    public static int WGPUTextureFormat_R32Uint() {
        return WGPUTextureFormat_R32Uint;
    }
    private static final int WGPUTextureFormat_R32Sint = (int)14L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_R32Sint = 14
     * }
     */
    public static int WGPUTextureFormat_R32Sint() {
        return WGPUTextureFormat_R32Sint;
    }
    private static final int WGPUTextureFormat_RG16Uint = (int)15L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG16Uint = 15
     * }
     */
    public static int WGPUTextureFormat_RG16Uint() {
        return WGPUTextureFormat_RG16Uint;
    }
    private static final int WGPUTextureFormat_RG16Sint = (int)16L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG16Sint = 16
     * }
     */
    public static int WGPUTextureFormat_RG16Sint() {
        return WGPUTextureFormat_RG16Sint;
    }
    private static final int WGPUTextureFormat_RG16Float = (int)17L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG16Float = 17
     * }
     */
    public static int WGPUTextureFormat_RG16Float() {
        return WGPUTextureFormat_RG16Float;
    }
    private static final int WGPUTextureFormat_RGBA8Unorm = (int)18L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA8Unorm = 18
     * }
     */
    public static int WGPUTextureFormat_RGBA8Unorm() {
        return WGPUTextureFormat_RGBA8Unorm;
    }
    private static final int WGPUTextureFormat_RGBA8UnormSrgb = (int)19L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA8UnormSrgb = 19
     * }
     */
    public static int WGPUTextureFormat_RGBA8UnormSrgb() {
        return WGPUTextureFormat_RGBA8UnormSrgb;
    }
    private static final int WGPUTextureFormat_RGBA8Snorm = (int)20L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA8Snorm = 20
     * }
     */
    public static int WGPUTextureFormat_RGBA8Snorm() {
        return WGPUTextureFormat_RGBA8Snorm;
    }
    private static final int WGPUTextureFormat_RGBA8Uint = (int)21L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA8Uint = 21
     * }
     */
    public static int WGPUTextureFormat_RGBA8Uint() {
        return WGPUTextureFormat_RGBA8Uint;
    }
    private static final int WGPUTextureFormat_RGBA8Sint = (int)22L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA8Sint = 22
     * }
     */
    public static int WGPUTextureFormat_RGBA8Sint() {
        return WGPUTextureFormat_RGBA8Sint;
    }
    private static final int WGPUTextureFormat_BGRA8Unorm = (int)23L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BGRA8Unorm = 23
     * }
     */
    public static int WGPUTextureFormat_BGRA8Unorm() {
        return WGPUTextureFormat_BGRA8Unorm;
    }
    private static final int WGPUTextureFormat_BGRA8UnormSrgb = (int)24L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BGRA8UnormSrgb = 24
     * }
     */
    public static int WGPUTextureFormat_BGRA8UnormSrgb() {
        return WGPUTextureFormat_BGRA8UnormSrgb;
    }
    private static final int WGPUTextureFormat_RGB10A2Uint = (int)25L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGB10A2Uint = 25
     * }
     */
    public static int WGPUTextureFormat_RGB10A2Uint() {
        return WGPUTextureFormat_RGB10A2Uint;
    }
    private static final int WGPUTextureFormat_RGB10A2Unorm = (int)26L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGB10A2Unorm = 26
     * }
     */
    public static int WGPUTextureFormat_RGB10A2Unorm() {
        return WGPUTextureFormat_RGB10A2Unorm;
    }
    private static final int WGPUTextureFormat_RG11B10Ufloat = (int)27L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG11B10Ufloat = 27
     * }
     */
    public static int WGPUTextureFormat_RG11B10Ufloat() {
        return WGPUTextureFormat_RG11B10Ufloat;
    }
    private static final int WGPUTextureFormat_RGB9E5Ufloat = (int)28L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGB9E5Ufloat = 28
     * }
     */
    public static int WGPUTextureFormat_RGB9E5Ufloat() {
        return WGPUTextureFormat_RGB9E5Ufloat;
    }
    private static final int WGPUTextureFormat_RG32Float = (int)29L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG32Float = 29
     * }
     */
    public static int WGPUTextureFormat_RG32Float() {
        return WGPUTextureFormat_RG32Float;
    }
    private static final int WGPUTextureFormat_RG32Uint = (int)30L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG32Uint = 30
     * }
     */
    public static int WGPUTextureFormat_RG32Uint() {
        return WGPUTextureFormat_RG32Uint;
    }
    private static final int WGPUTextureFormat_RG32Sint = (int)31L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RG32Sint = 31
     * }
     */
    public static int WGPUTextureFormat_RG32Sint() {
        return WGPUTextureFormat_RG32Sint;
    }
    private static final int WGPUTextureFormat_RGBA16Uint = (int)32L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA16Uint = 32
     * }
     */
    public static int WGPUTextureFormat_RGBA16Uint() {
        return WGPUTextureFormat_RGBA16Uint;
    }
    private static final int WGPUTextureFormat_RGBA16Sint = (int)33L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA16Sint = 33
     * }
     */
    public static int WGPUTextureFormat_RGBA16Sint() {
        return WGPUTextureFormat_RGBA16Sint;
    }
    private static final int WGPUTextureFormat_RGBA16Float = (int)34L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA16Float = 34
     * }
     */
    public static int WGPUTextureFormat_RGBA16Float() {
        return WGPUTextureFormat_RGBA16Float;
    }
    private static final int WGPUTextureFormat_RGBA32Float = (int)35L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA32Float = 35
     * }
     */
    public static int WGPUTextureFormat_RGBA32Float() {
        return WGPUTextureFormat_RGBA32Float;
    }
    private static final int WGPUTextureFormat_RGBA32Uint = (int)36L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA32Uint = 36
     * }
     */
    public static int WGPUTextureFormat_RGBA32Uint() {
        return WGPUTextureFormat_RGBA32Uint;
    }
    private static final int WGPUTextureFormat_RGBA32Sint = (int)37L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_RGBA32Sint = 37
     * }
     */
    public static int WGPUTextureFormat_RGBA32Sint() {
        return WGPUTextureFormat_RGBA32Sint;
    }
    private static final int WGPUTextureFormat_Stencil8 = (int)38L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Stencil8 = 38
     * }
     */
    public static int WGPUTextureFormat_Stencil8() {
        return WGPUTextureFormat_Stencil8;
    }
    private static final int WGPUTextureFormat_Depth16Unorm = (int)39L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Depth16Unorm = 39
     * }
     */
    public static int WGPUTextureFormat_Depth16Unorm() {
        return WGPUTextureFormat_Depth16Unorm;
    }
    private static final int WGPUTextureFormat_Depth24Plus = (int)40L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Depth24Plus = 40
     * }
     */
    public static int WGPUTextureFormat_Depth24Plus() {
        return WGPUTextureFormat_Depth24Plus;
    }
    private static final int WGPUTextureFormat_Depth24PlusStencil8 = (int)41L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Depth24PlusStencil8 = 41
     * }
     */
    public static int WGPUTextureFormat_Depth24PlusStencil8() {
        return WGPUTextureFormat_Depth24PlusStencil8;
    }
    private static final int WGPUTextureFormat_Depth32Float = (int)42L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Depth32Float = 42
     * }
     */
    public static int WGPUTextureFormat_Depth32Float() {
        return WGPUTextureFormat_Depth32Float;
    }
    private static final int WGPUTextureFormat_Depth32FloatStencil8 = (int)43L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Depth32FloatStencil8 = 43
     * }
     */
    public static int WGPUTextureFormat_Depth32FloatStencil8() {
        return WGPUTextureFormat_Depth32FloatStencil8;
    }
    private static final int WGPUTextureFormat_BC1RGBAUnorm = (int)44L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC1RGBAUnorm = 44
     * }
     */
    public static int WGPUTextureFormat_BC1RGBAUnorm() {
        return WGPUTextureFormat_BC1RGBAUnorm;
    }
    private static final int WGPUTextureFormat_BC1RGBAUnormSrgb = (int)45L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC1RGBAUnormSrgb = 45
     * }
     */
    public static int WGPUTextureFormat_BC1RGBAUnormSrgb() {
        return WGPUTextureFormat_BC1RGBAUnormSrgb;
    }
    private static final int WGPUTextureFormat_BC2RGBAUnorm = (int)46L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC2RGBAUnorm = 46
     * }
     */
    public static int WGPUTextureFormat_BC2RGBAUnorm() {
        return WGPUTextureFormat_BC2RGBAUnorm;
    }
    private static final int WGPUTextureFormat_BC2RGBAUnormSrgb = (int)47L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC2RGBAUnormSrgb = 47
     * }
     */
    public static int WGPUTextureFormat_BC2RGBAUnormSrgb() {
        return WGPUTextureFormat_BC2RGBAUnormSrgb;
    }
    private static final int WGPUTextureFormat_BC3RGBAUnorm = (int)48L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC3RGBAUnorm = 48
     * }
     */
    public static int WGPUTextureFormat_BC3RGBAUnorm() {
        return WGPUTextureFormat_BC3RGBAUnorm;
    }
    private static final int WGPUTextureFormat_BC3RGBAUnormSrgb = (int)49L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC3RGBAUnormSrgb = 49
     * }
     */
    public static int WGPUTextureFormat_BC3RGBAUnormSrgb() {
        return WGPUTextureFormat_BC3RGBAUnormSrgb;
    }
    private static final int WGPUTextureFormat_BC4RUnorm = (int)50L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC4RUnorm = 50
     * }
     */
    public static int WGPUTextureFormat_BC4RUnorm() {
        return WGPUTextureFormat_BC4RUnorm;
    }
    private static final int WGPUTextureFormat_BC4RSnorm = (int)51L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC4RSnorm = 51
     * }
     */
    public static int WGPUTextureFormat_BC4RSnorm() {
        return WGPUTextureFormat_BC4RSnorm;
    }
    private static final int WGPUTextureFormat_BC5RGUnorm = (int)52L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC5RGUnorm = 52
     * }
     */
    public static int WGPUTextureFormat_BC5RGUnorm() {
        return WGPUTextureFormat_BC5RGUnorm;
    }
    private static final int WGPUTextureFormat_BC5RGSnorm = (int)53L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC5RGSnorm = 53
     * }
     */
    public static int WGPUTextureFormat_BC5RGSnorm() {
        return WGPUTextureFormat_BC5RGSnorm;
    }
    private static final int WGPUTextureFormat_BC6HRGBUfloat = (int)54L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC6HRGBUfloat = 54
     * }
     */
    public static int WGPUTextureFormat_BC6HRGBUfloat() {
        return WGPUTextureFormat_BC6HRGBUfloat;
    }
    private static final int WGPUTextureFormat_BC6HRGBFloat = (int)55L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC6HRGBFloat = 55
     * }
     */
    public static int WGPUTextureFormat_BC6HRGBFloat() {
        return WGPUTextureFormat_BC6HRGBFloat;
    }
    private static final int WGPUTextureFormat_BC7RGBAUnorm = (int)56L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC7RGBAUnorm = 56
     * }
     */
    public static int WGPUTextureFormat_BC7RGBAUnorm() {
        return WGPUTextureFormat_BC7RGBAUnorm;
    }
    private static final int WGPUTextureFormat_BC7RGBAUnormSrgb = (int)57L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_BC7RGBAUnormSrgb = 57
     * }
     */
    public static int WGPUTextureFormat_BC7RGBAUnormSrgb() {
        return WGPUTextureFormat_BC7RGBAUnormSrgb;
    }
    private static final int WGPUTextureFormat_ETC2RGB8Unorm = (int)58L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ETC2RGB8Unorm = 58
     * }
     */
    public static int WGPUTextureFormat_ETC2RGB8Unorm() {
        return WGPUTextureFormat_ETC2RGB8Unorm;
    }
    private static final int WGPUTextureFormat_ETC2RGB8UnormSrgb = (int)59L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ETC2RGB8UnormSrgb = 59
     * }
     */
    public static int WGPUTextureFormat_ETC2RGB8UnormSrgb() {
        return WGPUTextureFormat_ETC2RGB8UnormSrgb;
    }
    private static final int WGPUTextureFormat_ETC2RGB8A1Unorm = (int)60L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ETC2RGB8A1Unorm = 60
     * }
     */
    public static int WGPUTextureFormat_ETC2RGB8A1Unorm() {
        return WGPUTextureFormat_ETC2RGB8A1Unorm;
    }
    private static final int WGPUTextureFormat_ETC2RGB8A1UnormSrgb = (int)61L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ETC2RGB8A1UnormSrgb = 61
     * }
     */
    public static int WGPUTextureFormat_ETC2RGB8A1UnormSrgb() {
        return WGPUTextureFormat_ETC2RGB8A1UnormSrgb;
    }
    private static final int WGPUTextureFormat_ETC2RGBA8Unorm = (int)62L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ETC2RGBA8Unorm = 62
     * }
     */
    public static int WGPUTextureFormat_ETC2RGBA8Unorm() {
        return WGPUTextureFormat_ETC2RGBA8Unorm;
    }
    private static final int WGPUTextureFormat_ETC2RGBA8UnormSrgb = (int)63L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ETC2RGBA8UnormSrgb = 63
     * }
     */
    public static int WGPUTextureFormat_ETC2RGBA8UnormSrgb() {
        return WGPUTextureFormat_ETC2RGBA8UnormSrgb;
    }
    private static final int WGPUTextureFormat_EACR11Unorm = (int)64L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_EACR11Unorm = 64
     * }
     */
    public static int WGPUTextureFormat_EACR11Unorm() {
        return WGPUTextureFormat_EACR11Unorm;
    }
    private static final int WGPUTextureFormat_EACR11Snorm = (int)65L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_EACR11Snorm = 65
     * }
     */
    public static int WGPUTextureFormat_EACR11Snorm() {
        return WGPUTextureFormat_EACR11Snorm;
    }
    private static final int WGPUTextureFormat_EACRG11Unorm = (int)66L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_EACRG11Unorm = 66
     * }
     */
    public static int WGPUTextureFormat_EACRG11Unorm() {
        return WGPUTextureFormat_EACRG11Unorm;
    }
    private static final int WGPUTextureFormat_EACRG11Snorm = (int)67L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_EACRG11Snorm = 67
     * }
     */
    public static int WGPUTextureFormat_EACRG11Snorm() {
        return WGPUTextureFormat_EACRG11Snorm;
    }
    private static final int WGPUTextureFormat_ASTC4x4Unorm = (int)68L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC4x4Unorm = 68
     * }
     */
    public static int WGPUTextureFormat_ASTC4x4Unorm() {
        return WGPUTextureFormat_ASTC4x4Unorm;
    }
    private static final int WGPUTextureFormat_ASTC4x4UnormSrgb = (int)69L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC4x4UnormSrgb = 69
     * }
     */
    public static int WGPUTextureFormat_ASTC4x4UnormSrgb() {
        return WGPUTextureFormat_ASTC4x4UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC5x4Unorm = (int)70L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC5x4Unorm = 70
     * }
     */
    public static int WGPUTextureFormat_ASTC5x4Unorm() {
        return WGPUTextureFormat_ASTC5x4Unorm;
    }
    private static final int WGPUTextureFormat_ASTC5x4UnormSrgb = (int)71L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC5x4UnormSrgb = 71
     * }
     */
    public static int WGPUTextureFormat_ASTC5x4UnormSrgb() {
        return WGPUTextureFormat_ASTC5x4UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC5x5Unorm = (int)72L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC5x5Unorm = 72
     * }
     */
    public static int WGPUTextureFormat_ASTC5x5Unorm() {
        return WGPUTextureFormat_ASTC5x5Unorm;
    }
    private static final int WGPUTextureFormat_ASTC5x5UnormSrgb = (int)73L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC5x5UnormSrgb = 73
     * }
     */
    public static int WGPUTextureFormat_ASTC5x5UnormSrgb() {
        return WGPUTextureFormat_ASTC5x5UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC6x5Unorm = (int)74L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC6x5Unorm = 74
     * }
     */
    public static int WGPUTextureFormat_ASTC6x5Unorm() {
        return WGPUTextureFormat_ASTC6x5Unorm;
    }
    private static final int WGPUTextureFormat_ASTC6x5UnormSrgb = (int)75L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC6x5UnormSrgb = 75
     * }
     */
    public static int WGPUTextureFormat_ASTC6x5UnormSrgb() {
        return WGPUTextureFormat_ASTC6x5UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC6x6Unorm = (int)76L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC6x6Unorm = 76
     * }
     */
    public static int WGPUTextureFormat_ASTC6x6Unorm() {
        return WGPUTextureFormat_ASTC6x6Unorm;
    }
    private static final int WGPUTextureFormat_ASTC6x6UnormSrgb = (int)77L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC6x6UnormSrgb = 77
     * }
     */
    public static int WGPUTextureFormat_ASTC6x6UnormSrgb() {
        return WGPUTextureFormat_ASTC6x6UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC8x5Unorm = (int)78L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC8x5Unorm = 78
     * }
     */
    public static int WGPUTextureFormat_ASTC8x5Unorm() {
        return WGPUTextureFormat_ASTC8x5Unorm;
    }
    private static final int WGPUTextureFormat_ASTC8x5UnormSrgb = (int)79L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC8x5UnormSrgb = 79
     * }
     */
    public static int WGPUTextureFormat_ASTC8x5UnormSrgb() {
        return WGPUTextureFormat_ASTC8x5UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC8x6Unorm = (int)80L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC8x6Unorm = 80
     * }
     */
    public static int WGPUTextureFormat_ASTC8x6Unorm() {
        return WGPUTextureFormat_ASTC8x6Unorm;
    }
    private static final int WGPUTextureFormat_ASTC8x6UnormSrgb = (int)81L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC8x6UnormSrgb = 81
     * }
     */
    public static int WGPUTextureFormat_ASTC8x6UnormSrgb() {
        return WGPUTextureFormat_ASTC8x6UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC8x8Unorm = (int)82L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC8x8Unorm = 82
     * }
     */
    public static int WGPUTextureFormat_ASTC8x8Unorm() {
        return WGPUTextureFormat_ASTC8x8Unorm;
    }
    private static final int WGPUTextureFormat_ASTC8x8UnormSrgb = (int)83L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC8x8UnormSrgb = 83
     * }
     */
    public static int WGPUTextureFormat_ASTC8x8UnormSrgb() {
        return WGPUTextureFormat_ASTC8x8UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC10x5Unorm = (int)84L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x5Unorm = 84
     * }
     */
    public static int WGPUTextureFormat_ASTC10x5Unorm() {
        return WGPUTextureFormat_ASTC10x5Unorm;
    }
    private static final int WGPUTextureFormat_ASTC10x5UnormSrgb = (int)85L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x5UnormSrgb = 85
     * }
     */
    public static int WGPUTextureFormat_ASTC10x5UnormSrgb() {
        return WGPUTextureFormat_ASTC10x5UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC10x6Unorm = (int)86L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x6Unorm = 86
     * }
     */
    public static int WGPUTextureFormat_ASTC10x6Unorm() {
        return WGPUTextureFormat_ASTC10x6Unorm;
    }
    private static final int WGPUTextureFormat_ASTC10x6UnormSrgb = (int)87L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x6UnormSrgb = 87
     * }
     */
    public static int WGPUTextureFormat_ASTC10x6UnormSrgb() {
        return WGPUTextureFormat_ASTC10x6UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC10x8Unorm = (int)88L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x8Unorm = 88
     * }
     */
    public static int WGPUTextureFormat_ASTC10x8Unorm() {
        return WGPUTextureFormat_ASTC10x8Unorm;
    }
    private static final int WGPUTextureFormat_ASTC10x8UnormSrgb = (int)89L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x8UnormSrgb = 89
     * }
     */
    public static int WGPUTextureFormat_ASTC10x8UnormSrgb() {
        return WGPUTextureFormat_ASTC10x8UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC10x10Unorm = (int)90L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x10Unorm = 90
     * }
     */
    public static int WGPUTextureFormat_ASTC10x10Unorm() {
        return WGPUTextureFormat_ASTC10x10Unorm;
    }
    private static final int WGPUTextureFormat_ASTC10x10UnormSrgb = (int)91L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC10x10UnormSrgb = 91
     * }
     */
    public static int WGPUTextureFormat_ASTC10x10UnormSrgb() {
        return WGPUTextureFormat_ASTC10x10UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC12x10Unorm = (int)92L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC12x10Unorm = 92
     * }
     */
    public static int WGPUTextureFormat_ASTC12x10Unorm() {
        return WGPUTextureFormat_ASTC12x10Unorm;
    }
    private static final int WGPUTextureFormat_ASTC12x10UnormSrgb = (int)93L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC12x10UnormSrgb = 93
     * }
     */
    public static int WGPUTextureFormat_ASTC12x10UnormSrgb() {
        return WGPUTextureFormat_ASTC12x10UnormSrgb;
    }
    private static final int WGPUTextureFormat_ASTC12x12Unorm = (int)94L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC12x12Unorm = 94
     * }
     */
    public static int WGPUTextureFormat_ASTC12x12Unorm() {
        return WGPUTextureFormat_ASTC12x12Unorm;
    }
    private static final int WGPUTextureFormat_ASTC12x12UnormSrgb = (int)95L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_ASTC12x12UnormSrgb = 95
     * }
     */
    public static int WGPUTextureFormat_ASTC12x12UnormSrgb() {
        return WGPUTextureFormat_ASTC12x12UnormSrgb;
    }
    private static final int WGPUTextureFormat_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureFormat.WGPUTextureFormat_Force32 = 2147483647
     * }
     */
    public static int WGPUTextureFormat_Force32() {
        return WGPUTextureFormat_Force32;
    }
    private static final int WGPUTextureSampleType_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_Undefined = 0
     * }
     */
    public static int WGPUTextureSampleType_Undefined() {
        return WGPUTextureSampleType_Undefined;
    }
    private static final int WGPUTextureSampleType_Float = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_Float = 1
     * }
     */
    public static int WGPUTextureSampleType_Float() {
        return WGPUTextureSampleType_Float;
    }
    private static final int WGPUTextureSampleType_UnfilterableFloat = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_UnfilterableFloat = 2
     * }
     */
    public static int WGPUTextureSampleType_UnfilterableFloat() {
        return WGPUTextureSampleType_UnfilterableFloat;
    }
    private static final int WGPUTextureSampleType_Depth = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_Depth = 3
     * }
     */
    public static int WGPUTextureSampleType_Depth() {
        return WGPUTextureSampleType_Depth;
    }
    private static final int WGPUTextureSampleType_Sint = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_Sint = 4
     * }
     */
    public static int WGPUTextureSampleType_Sint() {
        return WGPUTextureSampleType_Sint;
    }
    private static final int WGPUTextureSampleType_Uint = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_Uint = 5
     * }
     */
    public static int WGPUTextureSampleType_Uint() {
        return WGPUTextureSampleType_Uint;
    }
    private static final int WGPUTextureSampleType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureSampleType.WGPUTextureSampleType_Force32 = 2147483647
     * }
     */
    public static int WGPUTextureSampleType_Force32() {
        return WGPUTextureSampleType_Force32;
    }
    private static final int WGPUTextureViewDimension_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_Undefined = 0
     * }
     */
    public static int WGPUTextureViewDimension_Undefined() {
        return WGPUTextureViewDimension_Undefined;
    }
    private static final int WGPUTextureViewDimension_1D = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_1D = 1
     * }
     */
    public static int WGPUTextureViewDimension_1D() {
        return WGPUTextureViewDimension_1D;
    }
    private static final int WGPUTextureViewDimension_2D = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_2D = 2
     * }
     */
    public static int WGPUTextureViewDimension_2D() {
        return WGPUTextureViewDimension_2D;
    }
    private static final int WGPUTextureViewDimension_2DArray = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_2DArray = 3
     * }
     */
    public static int WGPUTextureViewDimension_2DArray() {
        return WGPUTextureViewDimension_2DArray;
    }
    private static final int WGPUTextureViewDimension_Cube = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_Cube = 4
     * }
     */
    public static int WGPUTextureViewDimension_Cube() {
        return WGPUTextureViewDimension_Cube;
    }
    private static final int WGPUTextureViewDimension_CubeArray = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_CubeArray = 5
     * }
     */
    public static int WGPUTextureViewDimension_CubeArray() {
        return WGPUTextureViewDimension_CubeArray;
    }
    private static final int WGPUTextureViewDimension_3D = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_3D = 6
     * }
     */
    public static int WGPUTextureViewDimension_3D() {
        return WGPUTextureViewDimension_3D;
    }
    private static final int WGPUTextureViewDimension_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureViewDimension.WGPUTextureViewDimension_Force32 = 2147483647
     * }
     */
    public static int WGPUTextureViewDimension_Force32() {
        return WGPUTextureViewDimension_Force32;
    }
    private static final int WGPUVertexFormat_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Undefined = 0
     * }
     */
    public static int WGPUVertexFormat_Undefined() {
        return WGPUVertexFormat_Undefined;
    }
    private static final int WGPUVertexFormat_Uint8x2 = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint8x2 = 1
     * }
     */
    public static int WGPUVertexFormat_Uint8x2() {
        return WGPUVertexFormat_Uint8x2;
    }
    private static final int WGPUVertexFormat_Uint8x4 = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint8x4 = 2
     * }
     */
    public static int WGPUVertexFormat_Uint8x4() {
        return WGPUVertexFormat_Uint8x4;
    }
    private static final int WGPUVertexFormat_Sint8x2 = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint8x2 = 3
     * }
     */
    public static int WGPUVertexFormat_Sint8x2() {
        return WGPUVertexFormat_Sint8x2;
    }
    private static final int WGPUVertexFormat_Sint8x4 = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint8x4 = 4
     * }
     */
    public static int WGPUVertexFormat_Sint8x4() {
        return WGPUVertexFormat_Sint8x4;
    }
    private static final int WGPUVertexFormat_Unorm8x2 = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Unorm8x2 = 5
     * }
     */
    public static int WGPUVertexFormat_Unorm8x2() {
        return WGPUVertexFormat_Unorm8x2;
    }
    private static final int WGPUVertexFormat_Unorm8x4 = (int)6L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Unorm8x4 = 6
     * }
     */
    public static int WGPUVertexFormat_Unorm8x4() {
        return WGPUVertexFormat_Unorm8x4;
    }
    private static final int WGPUVertexFormat_Snorm8x2 = (int)7L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Snorm8x2 = 7
     * }
     */
    public static int WGPUVertexFormat_Snorm8x2() {
        return WGPUVertexFormat_Snorm8x2;
    }
    private static final int WGPUVertexFormat_Snorm8x4 = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Snorm8x4 = 8
     * }
     */
    public static int WGPUVertexFormat_Snorm8x4() {
        return WGPUVertexFormat_Snorm8x4;
    }
    private static final int WGPUVertexFormat_Uint16x2 = (int)9L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint16x2 = 9
     * }
     */
    public static int WGPUVertexFormat_Uint16x2() {
        return WGPUVertexFormat_Uint16x2;
    }
    private static final int WGPUVertexFormat_Uint16x4 = (int)10L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint16x4 = 10
     * }
     */
    public static int WGPUVertexFormat_Uint16x4() {
        return WGPUVertexFormat_Uint16x4;
    }
    private static final int WGPUVertexFormat_Sint16x2 = (int)11L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint16x2 = 11
     * }
     */
    public static int WGPUVertexFormat_Sint16x2() {
        return WGPUVertexFormat_Sint16x2;
    }
    private static final int WGPUVertexFormat_Sint16x4 = (int)12L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint16x4 = 12
     * }
     */
    public static int WGPUVertexFormat_Sint16x4() {
        return WGPUVertexFormat_Sint16x4;
    }
    private static final int WGPUVertexFormat_Unorm16x2 = (int)13L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Unorm16x2 = 13
     * }
     */
    public static int WGPUVertexFormat_Unorm16x2() {
        return WGPUVertexFormat_Unorm16x2;
    }
    private static final int WGPUVertexFormat_Unorm16x4 = (int)14L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Unorm16x4 = 14
     * }
     */
    public static int WGPUVertexFormat_Unorm16x4() {
        return WGPUVertexFormat_Unorm16x4;
    }
    private static final int WGPUVertexFormat_Snorm16x2 = (int)15L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Snorm16x2 = 15
     * }
     */
    public static int WGPUVertexFormat_Snorm16x2() {
        return WGPUVertexFormat_Snorm16x2;
    }
    private static final int WGPUVertexFormat_Snorm16x4 = (int)16L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Snorm16x4 = 16
     * }
     */
    public static int WGPUVertexFormat_Snorm16x4() {
        return WGPUVertexFormat_Snorm16x4;
    }
    private static final int WGPUVertexFormat_Float16x2 = (int)17L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Float16x2 = 17
     * }
     */
    public static int WGPUVertexFormat_Float16x2() {
        return WGPUVertexFormat_Float16x2;
    }
    private static final int WGPUVertexFormat_Float16x4 = (int)18L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Float16x4 = 18
     * }
     */
    public static int WGPUVertexFormat_Float16x4() {
        return WGPUVertexFormat_Float16x4;
    }
    private static final int WGPUVertexFormat_Float32 = (int)19L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Float32 = 19
     * }
     */
    public static int WGPUVertexFormat_Float32() {
        return WGPUVertexFormat_Float32;
    }
    private static final int WGPUVertexFormat_Float32x2 = (int)20L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Float32x2 = 20
     * }
     */
    public static int WGPUVertexFormat_Float32x2() {
        return WGPUVertexFormat_Float32x2;
    }
    private static final int WGPUVertexFormat_Float32x3 = (int)21L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Float32x3 = 21
     * }
     */
    public static int WGPUVertexFormat_Float32x3() {
        return WGPUVertexFormat_Float32x3;
    }
    private static final int WGPUVertexFormat_Float32x4 = (int)22L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Float32x4 = 22
     * }
     */
    public static int WGPUVertexFormat_Float32x4() {
        return WGPUVertexFormat_Float32x4;
    }
    private static final int WGPUVertexFormat_Uint32 = (int)23L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint32 = 23
     * }
     */
    public static int WGPUVertexFormat_Uint32() {
        return WGPUVertexFormat_Uint32;
    }
    private static final int WGPUVertexFormat_Uint32x2 = (int)24L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint32x2 = 24
     * }
     */
    public static int WGPUVertexFormat_Uint32x2() {
        return WGPUVertexFormat_Uint32x2;
    }
    private static final int WGPUVertexFormat_Uint32x3 = (int)25L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint32x3 = 25
     * }
     */
    public static int WGPUVertexFormat_Uint32x3() {
        return WGPUVertexFormat_Uint32x3;
    }
    private static final int WGPUVertexFormat_Uint32x4 = (int)26L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Uint32x4 = 26
     * }
     */
    public static int WGPUVertexFormat_Uint32x4() {
        return WGPUVertexFormat_Uint32x4;
    }
    private static final int WGPUVertexFormat_Sint32 = (int)27L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint32 = 27
     * }
     */
    public static int WGPUVertexFormat_Sint32() {
        return WGPUVertexFormat_Sint32;
    }
    private static final int WGPUVertexFormat_Sint32x2 = (int)28L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint32x2 = 28
     * }
     */
    public static int WGPUVertexFormat_Sint32x2() {
        return WGPUVertexFormat_Sint32x2;
    }
    private static final int WGPUVertexFormat_Sint32x3 = (int)29L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint32x3 = 29
     * }
     */
    public static int WGPUVertexFormat_Sint32x3() {
        return WGPUVertexFormat_Sint32x3;
    }
    private static final int WGPUVertexFormat_Sint32x4 = (int)30L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Sint32x4 = 30
     * }
     */
    public static int WGPUVertexFormat_Sint32x4() {
        return WGPUVertexFormat_Sint32x4;
    }
    private static final int WGPUVertexFormat_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexFormat.WGPUVertexFormat_Force32 = 2147483647
     * }
     */
    public static int WGPUVertexFormat_Force32() {
        return WGPUVertexFormat_Force32;
    }
    private static final int WGPUVertexStepMode_Vertex = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexStepMode.WGPUVertexStepMode_Vertex = 0
     * }
     */
    public static int WGPUVertexStepMode_Vertex() {
        return WGPUVertexStepMode_Vertex;
    }
    private static final int WGPUVertexStepMode_Instance = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexStepMode.WGPUVertexStepMode_Instance = 1
     * }
     */
    public static int WGPUVertexStepMode_Instance() {
        return WGPUVertexStepMode_Instance;
    }
    private static final int WGPUVertexStepMode_VertexBufferNotUsed = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexStepMode.WGPUVertexStepMode_VertexBufferNotUsed = 2
     * }
     */
    public static int WGPUVertexStepMode_VertexBufferNotUsed() {
        return WGPUVertexStepMode_VertexBufferNotUsed;
    }
    private static final int WGPUVertexStepMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUVertexStepMode.WGPUVertexStepMode_Force32 = 2147483647
     * }
     */
    public static int WGPUVertexStepMode_Force32() {
        return WGPUVertexStepMode_Force32;
    }
    private static final int WGPUBufferUsage_None = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_None = 0
     * }
     */
    public static int WGPUBufferUsage_None() {
        return WGPUBufferUsage_None;
    }
    private static final int WGPUBufferUsage_MapRead = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_MapRead = 1
     * }
     */
    public static int WGPUBufferUsage_MapRead() {
        return WGPUBufferUsage_MapRead;
    }
    private static final int WGPUBufferUsage_MapWrite = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_MapWrite = 2
     * }
     */
    public static int WGPUBufferUsage_MapWrite() {
        return WGPUBufferUsage_MapWrite;
    }
    private static final int WGPUBufferUsage_CopySrc = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_CopySrc = 4
     * }
     */
    public static int WGPUBufferUsage_CopySrc() {
        return WGPUBufferUsage_CopySrc;
    }
    private static final int WGPUBufferUsage_CopyDst = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_CopyDst = 8
     * }
     */
    public static int WGPUBufferUsage_CopyDst() {
        return WGPUBufferUsage_CopyDst;
    }
    private static final int WGPUBufferUsage_Index = (int)16L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_Index = 16
     * }
     */
    public static int WGPUBufferUsage_Index() {
        return WGPUBufferUsage_Index;
    }
    private static final int WGPUBufferUsage_Vertex = (int)32L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_Vertex = 32
     * }
     */
    public static int WGPUBufferUsage_Vertex() {
        return WGPUBufferUsage_Vertex;
    }
    private static final int WGPUBufferUsage_Uniform = (int)64L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_Uniform = 64
     * }
     */
    public static int WGPUBufferUsage_Uniform() {
        return WGPUBufferUsage_Uniform;
    }
    private static final int WGPUBufferUsage_Storage = (int)128L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_Storage = 128
     * }
     */
    public static int WGPUBufferUsage_Storage() {
        return WGPUBufferUsage_Storage;
    }
    private static final int WGPUBufferUsage_Indirect = (int)256L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_Indirect = 256
     * }
     */
    public static int WGPUBufferUsage_Indirect() {
        return WGPUBufferUsage_Indirect;
    }
    private static final int WGPUBufferUsage_QueryResolve = (int)512L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_QueryResolve = 512
     * }
     */
    public static int WGPUBufferUsage_QueryResolve() {
        return WGPUBufferUsage_QueryResolve;
    }
    private static final int WGPUBufferUsage_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUBufferUsage.WGPUBufferUsage_Force32 = 2147483647
     * }
     */
    public static int WGPUBufferUsage_Force32() {
        return WGPUBufferUsage_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUBufferUsageFlags
     * }
     */
    public static final OfInt WGPUBufferUsageFlags = WGPU.C_INT;
    private static final int WGPUColorWriteMask_None = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_None = 0
     * }
     */
    public static int WGPUColorWriteMask_None() {
        return WGPUColorWriteMask_None;
    }
    private static final int WGPUColorWriteMask_Red = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_Red = 1
     * }
     */
    public static int WGPUColorWriteMask_Red() {
        return WGPUColorWriteMask_Red;
    }
    private static final int WGPUColorWriteMask_Green = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_Green = 2
     * }
     */
    public static int WGPUColorWriteMask_Green() {
        return WGPUColorWriteMask_Green;
    }
    private static final int WGPUColorWriteMask_Blue = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_Blue = 4
     * }
     */
    public static int WGPUColorWriteMask_Blue() {
        return WGPUColorWriteMask_Blue;
    }
    private static final int WGPUColorWriteMask_Alpha = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_Alpha = 8
     * }
     */
    public static int WGPUColorWriteMask_Alpha() {
        return WGPUColorWriteMask_Alpha;
    }
    private static final int WGPUColorWriteMask_All = (int)15L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_All = 15
     * }
     */
    public static int WGPUColorWriteMask_All() {
        return WGPUColorWriteMask_All;
    }
    private static final int WGPUColorWriteMask_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUColorWriteMask.WGPUColorWriteMask_Force32 = 2147483647
     * }
     */
    public static int WGPUColorWriteMask_Force32() {
        return WGPUColorWriteMask_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUColorWriteMaskFlags
     * }
     */
    public static final OfInt WGPUColorWriteMaskFlags = WGPU.C_INT;
    private static final int WGPUMapMode_None = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUMapMode.WGPUMapMode_None = 0
     * }
     */
    public static int WGPUMapMode_None() {
        return WGPUMapMode_None;
    }
    private static final int WGPUMapMode_Read = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUMapMode.WGPUMapMode_Read = 1
     * }
     */
    public static int WGPUMapMode_Read() {
        return WGPUMapMode_Read;
    }
    private static final int WGPUMapMode_Write = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUMapMode.WGPUMapMode_Write = 2
     * }
     */
    public static int WGPUMapMode_Write() {
        return WGPUMapMode_Write;
    }
    private static final int WGPUMapMode_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUMapMode.WGPUMapMode_Force32 = 2147483647
     * }
     */
    public static int WGPUMapMode_Force32() {
        return WGPUMapMode_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUMapModeFlags
     * }
     */
    public static final OfInt WGPUMapModeFlags = WGPU.C_INT;
    private static final int WGPUShaderStage_None = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUShaderStage.WGPUShaderStage_None = 0
     * }
     */
    public static int WGPUShaderStage_None() {
        return WGPUShaderStage_None;
    }
    private static final int WGPUShaderStage_Vertex = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUShaderStage.WGPUShaderStage_Vertex = 1
     * }
     */
    public static int WGPUShaderStage_Vertex() {
        return WGPUShaderStage_Vertex;
    }
    private static final int WGPUShaderStage_Fragment = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUShaderStage.WGPUShaderStage_Fragment = 2
     * }
     */
    public static int WGPUShaderStage_Fragment() {
        return WGPUShaderStage_Fragment;
    }
    private static final int WGPUShaderStage_Compute = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUShaderStage.WGPUShaderStage_Compute = 4
     * }
     */
    public static int WGPUShaderStage_Compute() {
        return WGPUShaderStage_Compute;
    }
    private static final int WGPUShaderStage_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUShaderStage.WGPUShaderStage_Force32 = 2147483647
     * }
     */
    public static int WGPUShaderStage_Force32() {
        return WGPUShaderStage_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUShaderStageFlags
     * }
     */
    public static final OfInt WGPUShaderStageFlags = WGPU.C_INT;
    private static final int WGPUTextureUsage_None = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_None = 0
     * }
     */
    public static int WGPUTextureUsage_None() {
        return WGPUTextureUsage_None;
    }
    private static final int WGPUTextureUsage_CopySrc = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_CopySrc = 1
     * }
     */
    public static int WGPUTextureUsage_CopySrc() {
        return WGPUTextureUsage_CopySrc;
    }
    private static final int WGPUTextureUsage_CopyDst = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_CopyDst = 2
     * }
     */
    public static int WGPUTextureUsage_CopyDst() {
        return WGPUTextureUsage_CopyDst;
    }
    private static final int WGPUTextureUsage_TextureBinding = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_TextureBinding = 4
     * }
     */
    public static int WGPUTextureUsage_TextureBinding() {
        return WGPUTextureUsage_TextureBinding;
    }
    private static final int WGPUTextureUsage_StorageBinding = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_StorageBinding = 8
     * }
     */
    public static int WGPUTextureUsage_StorageBinding() {
        return WGPUTextureUsage_StorageBinding;
    }
    private static final int WGPUTextureUsage_RenderAttachment = (int)16L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_RenderAttachment = 16
     * }
     */
    public static int WGPUTextureUsage_RenderAttachment() {
        return WGPUTextureUsage_RenderAttachment;
    }
    private static final int WGPUTextureUsage_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUTextureUsage.WGPUTextureUsage_Force32 = 2147483647
     * }
     */
    public static int WGPUTextureUsage_Force32() {
        return WGPUTextureUsage_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUTextureUsageFlags
     * }
     */
    public static final OfInt WGPUTextureUsageFlags = WGPU.C_INT;

    private static class wgpuCreateInstance {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCreateInstance");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUInstance wgpuCreateInstance(const WGPUInstanceDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuCreateInstance$descriptor() {
        return wgpuCreateInstance.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUInstance wgpuCreateInstance(const WGPUInstanceDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuCreateInstance$handle() {
        return wgpuCreateInstance.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUInstance wgpuCreateInstance(const WGPUInstanceDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCreateInstance$address() {
        return wgpuCreateInstance.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUInstance wgpuCreateInstance(const WGPUInstanceDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCreateInstance(MemorySegment descriptor) {
        var mh$ = wgpuCreateInstance.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCreateInstance", descriptor);
            }
            return (MemorySegment)mh$.invokeExact(descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuGetProcAddress {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuGetProcAddress");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUProc wgpuGetProcAddress(WGPUDevice device, const char *procName)
     * }
     */
    public static FunctionDescriptor wgpuGetProcAddress$descriptor() {
        return wgpuGetProcAddress.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUProc wgpuGetProcAddress(WGPUDevice device, const char *procName)
     * }
     */
    public static MethodHandle wgpuGetProcAddress$handle() {
        return wgpuGetProcAddress.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUProc wgpuGetProcAddress(WGPUDevice device, const char *procName)
     * }
     */
    public static MemorySegment wgpuGetProcAddress$address() {
        return wgpuGetProcAddress.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUProc wgpuGetProcAddress(WGPUDevice device, const char *procName)
     * }
     */
    public static MemorySegment wgpuGetProcAddress(MemorySegment device, MemorySegment procName) {
        var mh$ = wgpuGetProcAddress.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuGetProcAddress", device, procName);
            }
            return (MemorySegment)mh$.invokeExact(device, procName);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterEnumerateFeatures {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterEnumerateFeatures");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features)
     * }
     */
    public static FunctionDescriptor wgpuAdapterEnumerateFeatures$descriptor() {
        return wgpuAdapterEnumerateFeatures.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features)
     * }
     */
    public static MethodHandle wgpuAdapterEnumerateFeatures$handle() {
        return wgpuAdapterEnumerateFeatures.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features)
     * }
     */
    public static MemorySegment wgpuAdapterEnumerateFeatures$address() {
        return wgpuAdapterEnumerateFeatures.ADDR;
    }

    /**
     * {@snippet lang=c :
     * size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features)
     * }
     */
    public static long wgpuAdapterEnumerateFeatures(MemorySegment adapter, MemorySegment features) {
        var mh$ = wgpuAdapterEnumerateFeatures.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterEnumerateFeatures", adapter, features);
            }
            return (long)mh$.invokeExact(adapter, features);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterGetLimits {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterGetLimits");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits)
     * }
     */
    public static FunctionDescriptor wgpuAdapterGetLimits$descriptor() {
        return wgpuAdapterGetLimits.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits)
     * }
     */
    public static MethodHandle wgpuAdapterGetLimits$handle() {
        return wgpuAdapterGetLimits.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits)
     * }
     */
    public static MemorySegment wgpuAdapterGetLimits$address() {
        return wgpuAdapterGetLimits.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits)
     * }
     */
    public static int wgpuAdapterGetLimits(MemorySegment adapter, MemorySegment limits) {
        var mh$ = wgpuAdapterGetLimits.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterGetLimits", adapter, limits);
            }
            return (int)mh$.invokeExact(adapter, limits);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterGetProperties {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterGetProperties");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties)
     * }
     */
    public static FunctionDescriptor wgpuAdapterGetProperties$descriptor() {
        return wgpuAdapterGetProperties.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties)
     * }
     */
    public static MethodHandle wgpuAdapterGetProperties$handle() {
        return wgpuAdapterGetProperties.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties)
     * }
     */
    public static MemorySegment wgpuAdapterGetProperties$address() {
        return wgpuAdapterGetProperties.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties)
     * }
     */
    public static void wgpuAdapterGetProperties(MemorySegment adapter, MemorySegment properties) {
        var mh$ = wgpuAdapterGetProperties.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterGetProperties", adapter, properties);
            }
            mh$.invokeExact(adapter, properties);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterHasFeature {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterHasFeature");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
     * }
     */
    public static FunctionDescriptor wgpuAdapterHasFeature$descriptor() {
        return wgpuAdapterHasFeature.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
     * }
     */
    public static MethodHandle wgpuAdapterHasFeature$handle() {
        return wgpuAdapterHasFeature.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
     * }
     */
    public static MemorySegment wgpuAdapterHasFeature$address() {
        return wgpuAdapterHasFeature.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
     * }
     */
    public static int wgpuAdapterHasFeature(MemorySegment adapter, int feature) {
        var mh$ = wgpuAdapterHasFeature.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterHasFeature", adapter, feature);
            }
            return (int)mh$.invokeExact(adapter, feature);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterRequestDevice {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterRequestDevice");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuAdapterRequestDevice(WGPUAdapter adapter, const WGPUDeviceDescriptor *descriptor, WGPURequestDeviceCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuAdapterRequestDevice$descriptor() {
        return wgpuAdapterRequestDevice.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuAdapterRequestDevice(WGPUAdapter adapter, const WGPUDeviceDescriptor *descriptor, WGPURequestDeviceCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuAdapterRequestDevice$handle() {
        return wgpuAdapterRequestDevice.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuAdapterRequestDevice(WGPUAdapter adapter, const WGPUDeviceDescriptor *descriptor, WGPURequestDeviceCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuAdapterRequestDevice$address() {
        return wgpuAdapterRequestDevice.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuAdapterRequestDevice(WGPUAdapter adapter, const WGPUDeviceDescriptor *descriptor, WGPURequestDeviceCallback callback, void *userdata)
     * }
     */
    public static void wgpuAdapterRequestDevice(MemorySegment adapter, MemorySegment descriptor, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuAdapterRequestDevice.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterRequestDevice", adapter, descriptor, callback, userdata);
            }
            mh$.invokeExact(adapter, descriptor, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuAdapterReference(WGPUAdapter adapter)
     * }
     */
    public static FunctionDescriptor wgpuAdapterReference$descriptor() {
        return wgpuAdapterReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuAdapterReference(WGPUAdapter adapter)
     * }
     */
    public static MethodHandle wgpuAdapterReference$handle() {
        return wgpuAdapterReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuAdapterReference(WGPUAdapter adapter)
     * }
     */
    public static MemorySegment wgpuAdapterReference$address() {
        return wgpuAdapterReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuAdapterReference(WGPUAdapter adapter)
     * }
     */
    public static void wgpuAdapterReference(MemorySegment adapter) {
        var mh$ = wgpuAdapterReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterReference", adapter);
            }
            mh$.invokeExact(adapter);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuAdapterRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuAdapterRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuAdapterRelease(WGPUAdapter adapter)
     * }
     */
    public static FunctionDescriptor wgpuAdapterRelease$descriptor() {
        return wgpuAdapterRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuAdapterRelease(WGPUAdapter adapter)
     * }
     */
    public static MethodHandle wgpuAdapterRelease$handle() {
        return wgpuAdapterRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuAdapterRelease(WGPUAdapter adapter)
     * }
     */
    public static MemorySegment wgpuAdapterRelease$address() {
        return wgpuAdapterRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuAdapterRelease(WGPUAdapter adapter)
     * }
     */
    public static void wgpuAdapterRelease(MemorySegment adapter) {
        var mh$ = wgpuAdapterRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuAdapterRelease", adapter);
            }
            mh$.invokeExact(adapter);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBindGroupSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBindGroupSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuBindGroupSetLabel$descriptor() {
        return wgpuBindGroupSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, const char *label)
     * }
     */
    public static MethodHandle wgpuBindGroupSetLabel$handle() {
        return wgpuBindGroupSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, const char *label)
     * }
     */
    public static MemorySegment wgpuBindGroupSetLabel$address() {
        return wgpuBindGroupSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, const char *label)
     * }
     */
    public static void wgpuBindGroupSetLabel(MemorySegment bindGroup, MemorySegment label) {
        var mh$ = wgpuBindGroupSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBindGroupSetLabel", bindGroup, label);
            }
            mh$.invokeExact(bindGroup, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBindGroupReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBindGroupReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBindGroupReference(WGPUBindGroup bindGroup)
     * }
     */
    public static FunctionDescriptor wgpuBindGroupReference$descriptor() {
        return wgpuBindGroupReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBindGroupReference(WGPUBindGroup bindGroup)
     * }
     */
    public static MethodHandle wgpuBindGroupReference$handle() {
        return wgpuBindGroupReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBindGroupReference(WGPUBindGroup bindGroup)
     * }
     */
    public static MemorySegment wgpuBindGroupReference$address() {
        return wgpuBindGroupReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBindGroupReference(WGPUBindGroup bindGroup)
     * }
     */
    public static void wgpuBindGroupReference(MemorySegment bindGroup) {
        var mh$ = wgpuBindGroupReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBindGroupReference", bindGroup);
            }
            mh$.invokeExact(bindGroup);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBindGroupRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBindGroupRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
     * }
     */
    public static FunctionDescriptor wgpuBindGroupRelease$descriptor() {
        return wgpuBindGroupRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
     * }
     */
    public static MethodHandle wgpuBindGroupRelease$handle() {
        return wgpuBindGroupRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
     * }
     */
    public static MemorySegment wgpuBindGroupRelease$address() {
        return wgpuBindGroupRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
     * }
     */
    public static void wgpuBindGroupRelease(MemorySegment bindGroup) {
        var mh$ = wgpuBindGroupRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBindGroupRelease", bindGroup);
            }
            mh$.invokeExact(bindGroup);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBindGroupLayoutSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBindGroupLayoutSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuBindGroupLayoutSetLabel$descriptor() {
        return wgpuBindGroupLayoutSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, const char *label)
     * }
     */
    public static MethodHandle wgpuBindGroupLayoutSetLabel$handle() {
        return wgpuBindGroupLayoutSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, const char *label)
     * }
     */
    public static MemorySegment wgpuBindGroupLayoutSetLabel$address() {
        return wgpuBindGroupLayoutSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, const char *label)
     * }
     */
    public static void wgpuBindGroupLayoutSetLabel(MemorySegment bindGroupLayout, MemorySegment label) {
        var mh$ = wgpuBindGroupLayoutSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBindGroupLayoutSetLabel", bindGroupLayout, label);
            }
            mh$.invokeExact(bindGroupLayout, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBindGroupLayoutReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBindGroupLayoutReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static FunctionDescriptor wgpuBindGroupLayoutReference$descriptor() {
        return wgpuBindGroupLayoutReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static MethodHandle wgpuBindGroupLayoutReference$handle() {
        return wgpuBindGroupLayoutReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static MemorySegment wgpuBindGroupLayoutReference$address() {
        return wgpuBindGroupLayoutReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static void wgpuBindGroupLayoutReference(MemorySegment bindGroupLayout) {
        var mh$ = wgpuBindGroupLayoutReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBindGroupLayoutReference", bindGroupLayout);
            }
            mh$.invokeExact(bindGroupLayout);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBindGroupLayoutRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBindGroupLayoutRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static FunctionDescriptor wgpuBindGroupLayoutRelease$descriptor() {
        return wgpuBindGroupLayoutRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static MethodHandle wgpuBindGroupLayoutRelease$handle() {
        return wgpuBindGroupLayoutRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static MemorySegment wgpuBindGroupLayoutRelease$address() {
        return wgpuBindGroupLayoutRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
     * }
     */
    public static void wgpuBindGroupLayoutRelease(MemorySegment bindGroupLayout) {
        var mh$ = wgpuBindGroupLayoutRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBindGroupLayoutRelease", bindGroupLayout);
            }
            mh$.invokeExact(bindGroupLayout);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferDestroy {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferDestroy");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBufferDestroy(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferDestroy$descriptor() {
        return wgpuBufferDestroy.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBufferDestroy(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferDestroy$handle() {
        return wgpuBufferDestroy.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBufferDestroy(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferDestroy$address() {
        return wgpuBufferDestroy.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBufferDestroy(WGPUBuffer buffer)
     * }
     */
    public static void wgpuBufferDestroy(MemorySegment buffer) {
        var mh$ = wgpuBufferDestroy.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferDestroy", buffer);
            }
            mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferGetConstMappedRange {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferGetConstMappedRange");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * const void *wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static FunctionDescriptor wgpuBufferGetConstMappedRange$descriptor() {
        return wgpuBufferGetConstMappedRange.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * const void *wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static MethodHandle wgpuBufferGetConstMappedRange$handle() {
        return wgpuBufferGetConstMappedRange.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * const void *wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static MemorySegment wgpuBufferGetConstMappedRange$address() {
        return wgpuBufferGetConstMappedRange.ADDR;
    }

    /**
     * {@snippet lang=c :
     * const void *wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static MemorySegment wgpuBufferGetConstMappedRange(MemorySegment buffer, long offset, long size) {
        var mh$ = wgpuBufferGetConstMappedRange.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferGetConstMappedRange", buffer, offset, size);
            }
            return (MemorySegment)mh$.invokeExact(buffer, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferGetMapState {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferGetMapState");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferGetMapState$descriptor() {
        return wgpuBufferGetMapState.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferGetMapState$handle() {
        return wgpuBufferGetMapState.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferGetMapState$address() {
        return wgpuBufferGetMapState.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
     * }
     */
    public static int wgpuBufferGetMapState(MemorySegment buffer) {
        var mh$ = wgpuBufferGetMapState.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferGetMapState", buffer);
            }
            return (int)mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferGetMappedRange {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferGetMappedRange");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void *wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static FunctionDescriptor wgpuBufferGetMappedRange$descriptor() {
        return wgpuBufferGetMappedRange.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void *wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static MethodHandle wgpuBufferGetMappedRange$handle() {
        return wgpuBufferGetMappedRange.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void *wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static MemorySegment wgpuBufferGetMappedRange$address() {
        return wgpuBufferGetMappedRange.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void *wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
     * }
     */
    public static MemorySegment wgpuBufferGetMappedRange(MemorySegment buffer, long offset, long size) {
        var mh$ = wgpuBufferGetMappedRange.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferGetMappedRange", buffer, offset, size);
            }
            return (MemorySegment)mh$.invokeExact(buffer, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferGetSize {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferGetSize");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferGetSize$descriptor() {
        return wgpuBufferGetSize.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferGetSize$handle() {
        return wgpuBufferGetSize.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferGetSize$address() {
        return wgpuBufferGetSize.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
     * }
     */
    public static long wgpuBufferGetSize(MemorySegment buffer) {
        var mh$ = wgpuBufferGetSize.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferGetSize", buffer);
            }
            return (long)mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferGetUsage {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferGetUsage");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferGetUsage$descriptor() {
        return wgpuBufferGetUsage.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferGetUsage$handle() {
        return wgpuBufferGetUsage.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferGetUsage$address() {
        return wgpuBufferGetUsage.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer)
     * }
     */
    public static int wgpuBufferGetUsage(MemorySegment buffer) {
        var mh$ = wgpuBufferGetUsage.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferGetUsage", buffer);
            }
            return (int)mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferMapAsync {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferMapAsync");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuBufferMapAsync$descriptor() {
        return wgpuBufferMapAsync.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuBufferMapAsync$handle() {
        return wgpuBufferMapAsync.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuBufferMapAsync$address() {
        return wgpuBufferMapAsync.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata)
     * }
     */
    public static void wgpuBufferMapAsync(MemorySegment buffer, int mode, long offset, long size, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuBufferMapAsync.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferMapAsync", buffer, mode, offset, size, callback, userdata);
            }
            mh$.invokeExact(buffer, mode, offset, size, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBufferSetLabel(WGPUBuffer buffer, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuBufferSetLabel$descriptor() {
        return wgpuBufferSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBufferSetLabel(WGPUBuffer buffer, const char *label)
     * }
     */
    public static MethodHandle wgpuBufferSetLabel$handle() {
        return wgpuBufferSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBufferSetLabel(WGPUBuffer buffer, const char *label)
     * }
     */
    public static MemorySegment wgpuBufferSetLabel$address() {
        return wgpuBufferSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBufferSetLabel(WGPUBuffer buffer, const char *label)
     * }
     */
    public static void wgpuBufferSetLabel(MemorySegment buffer, MemorySegment label) {
        var mh$ = wgpuBufferSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferSetLabel", buffer, label);
            }
            mh$.invokeExact(buffer, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferUnmap {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferUnmap");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBufferUnmap(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferUnmap$descriptor() {
        return wgpuBufferUnmap.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBufferUnmap(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferUnmap$handle() {
        return wgpuBufferUnmap.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBufferUnmap(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferUnmap$address() {
        return wgpuBufferUnmap.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBufferUnmap(WGPUBuffer buffer)
     * }
     */
    public static void wgpuBufferUnmap(MemorySegment buffer) {
        var mh$ = wgpuBufferUnmap.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferUnmap", buffer);
            }
            mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBufferReference(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferReference$descriptor() {
        return wgpuBufferReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBufferReference(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferReference$handle() {
        return wgpuBufferReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBufferReference(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferReference$address() {
        return wgpuBufferReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBufferReference(WGPUBuffer buffer)
     * }
     */
    public static void wgpuBufferReference(MemorySegment buffer) {
        var mh$ = wgpuBufferReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferReference", buffer);
            }
            mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuBufferRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuBufferRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuBufferRelease(WGPUBuffer buffer)
     * }
     */
    public static FunctionDescriptor wgpuBufferRelease$descriptor() {
        return wgpuBufferRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuBufferRelease(WGPUBuffer buffer)
     * }
     */
    public static MethodHandle wgpuBufferRelease$handle() {
        return wgpuBufferRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuBufferRelease(WGPUBuffer buffer)
     * }
     */
    public static MemorySegment wgpuBufferRelease$address() {
        return wgpuBufferRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuBufferRelease(WGPUBuffer buffer)
     * }
     */
    public static void wgpuBufferRelease(MemorySegment buffer) {
        var mh$ = wgpuBufferRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuBufferRelease", buffer);
            }
            mh$.invokeExact(buffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandBufferSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandBufferSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuCommandBufferSetLabel$descriptor() {
        return wgpuCommandBufferSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, const char *label)
     * }
     */
    public static MethodHandle wgpuCommandBufferSetLabel$handle() {
        return wgpuCommandBufferSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, const char *label)
     * }
     */
    public static MemorySegment wgpuCommandBufferSetLabel$address() {
        return wgpuCommandBufferSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, const char *label)
     * }
     */
    public static void wgpuCommandBufferSetLabel(MemorySegment commandBuffer, MemorySegment label) {
        var mh$ = wgpuCommandBufferSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandBufferSetLabel", commandBuffer, label);
            }
            mh$.invokeExact(commandBuffer, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandBufferReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandBufferReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static FunctionDescriptor wgpuCommandBufferReference$descriptor() {
        return wgpuCommandBufferReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static MethodHandle wgpuCommandBufferReference$handle() {
        return wgpuCommandBufferReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static MemorySegment wgpuCommandBufferReference$address() {
        return wgpuCommandBufferReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static void wgpuCommandBufferReference(MemorySegment commandBuffer) {
        var mh$ = wgpuCommandBufferReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandBufferReference", commandBuffer);
            }
            mh$.invokeExact(commandBuffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandBufferRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandBufferRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static FunctionDescriptor wgpuCommandBufferRelease$descriptor() {
        return wgpuCommandBufferRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static MethodHandle wgpuCommandBufferRelease$handle() {
        return wgpuCommandBufferRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static MemorySegment wgpuCommandBufferRelease$address() {
        return wgpuCommandBufferRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
     * }
     */
    public static void wgpuCommandBufferRelease(MemorySegment commandBuffer) {
        var mh$ = wgpuCommandBufferRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandBufferRelease", commandBuffer);
            }
            mh$.invokeExact(commandBuffer);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderBeginComputePass {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderBeginComputePass");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, const WGPUComputePassDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderBeginComputePass$descriptor() {
        return wgpuCommandEncoderBeginComputePass.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, const WGPUComputePassDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuCommandEncoderBeginComputePass$handle() {
        return wgpuCommandEncoderBeginComputePass.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, const WGPUComputePassDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCommandEncoderBeginComputePass$address() {
        return wgpuCommandEncoderBeginComputePass.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, const WGPUComputePassDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCommandEncoderBeginComputePass(MemorySegment commandEncoder, MemorySegment descriptor) {
        var mh$ = wgpuCommandEncoderBeginComputePass.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderBeginComputePass", commandEncoder, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(commandEncoder, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderBeginRenderPass {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderBeginRenderPass");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, const WGPURenderPassDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderBeginRenderPass$descriptor() {
        return wgpuCommandEncoderBeginRenderPass.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, const WGPURenderPassDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuCommandEncoderBeginRenderPass$handle() {
        return wgpuCommandEncoderBeginRenderPass.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, const WGPURenderPassDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCommandEncoderBeginRenderPass$address() {
        return wgpuCommandEncoderBeginRenderPass.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, const WGPURenderPassDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCommandEncoderBeginRenderPass(MemorySegment commandEncoder, MemorySegment descriptor) {
        var mh$ = wgpuCommandEncoderBeginRenderPass.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderBeginRenderPass", commandEncoder, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(commandEncoder, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderClearBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderClearBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderClearBuffer$descriptor() {
        return wgpuCommandEncoderClearBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static MethodHandle wgpuCommandEncoderClearBuffer$handle() {
        return wgpuCommandEncoderClearBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static MemorySegment wgpuCommandEncoderClearBuffer$address() {
        return wgpuCommandEncoderClearBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static void wgpuCommandEncoderClearBuffer(MemorySegment commandEncoder, MemorySegment buffer, long offset, long size) {
        var mh$ = wgpuCommandEncoderClearBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderClearBuffer", commandEncoder, buffer, offset, size);
            }
            mh$.invokeExact(commandEncoder, buffer, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderCopyBufferToBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderCopyBufferToBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderCopyBufferToBuffer$descriptor() {
        return wgpuCommandEncoderCopyBufferToBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
     * }
     */
    public static MethodHandle wgpuCommandEncoderCopyBufferToBuffer$handle() {
        return wgpuCommandEncoderCopyBufferToBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
     * }
     */
    public static MemorySegment wgpuCommandEncoderCopyBufferToBuffer$address() {
        return wgpuCommandEncoderCopyBufferToBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
     * }
     */
    public static void wgpuCommandEncoderCopyBufferToBuffer(MemorySegment commandEncoder, MemorySegment source, long sourceOffset, MemorySegment destination, long destinationOffset, long size) {
        var mh$ = wgpuCommandEncoderCopyBufferToBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderCopyBufferToBuffer", commandEncoder, source, sourceOffset, destination, destinationOffset, size);
            }
            mh$.invokeExact(commandEncoder, source, sourceOffset, destination, destinationOffset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderCopyBufferToTexture {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderCopyBufferToTexture");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyBuffer *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderCopyBufferToTexture$descriptor() {
        return wgpuCommandEncoderCopyBufferToTexture.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyBuffer *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static MethodHandle wgpuCommandEncoderCopyBufferToTexture$handle() {
        return wgpuCommandEncoderCopyBufferToTexture.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyBuffer *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static MemorySegment wgpuCommandEncoderCopyBufferToTexture$address() {
        return wgpuCommandEncoderCopyBufferToTexture.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyBuffer *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static void wgpuCommandEncoderCopyBufferToTexture(MemorySegment commandEncoder, MemorySegment source, MemorySegment destination, MemorySegment copySize) {
        var mh$ = wgpuCommandEncoderCopyBufferToTexture.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderCopyBufferToTexture", commandEncoder, source, destination, copySize);
            }
            mh$.invokeExact(commandEncoder, source, destination, copySize);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderCopyTextureToBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderCopyTextureToBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyBuffer *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderCopyTextureToBuffer$descriptor() {
        return wgpuCommandEncoderCopyTextureToBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyBuffer *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static MethodHandle wgpuCommandEncoderCopyTextureToBuffer$handle() {
        return wgpuCommandEncoderCopyTextureToBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyBuffer *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static MemorySegment wgpuCommandEncoderCopyTextureToBuffer$address() {
        return wgpuCommandEncoderCopyTextureToBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyBuffer *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static void wgpuCommandEncoderCopyTextureToBuffer(MemorySegment commandEncoder, MemorySegment source, MemorySegment destination, MemorySegment copySize) {
        var mh$ = wgpuCommandEncoderCopyTextureToBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderCopyTextureToBuffer", commandEncoder, source, destination, copySize);
            }
            mh$.invokeExact(commandEncoder, source, destination, copySize);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderCopyTextureToTexture {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderCopyTextureToTexture");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderCopyTextureToTexture$descriptor() {
        return wgpuCommandEncoderCopyTextureToTexture.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static MethodHandle wgpuCommandEncoderCopyTextureToTexture$handle() {
        return wgpuCommandEncoderCopyTextureToTexture.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static MemorySegment wgpuCommandEncoderCopyTextureToTexture$address() {
        return wgpuCommandEncoderCopyTextureToTexture.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, const WGPUImageCopyTexture *source, const WGPUImageCopyTexture *destination, const WGPUExtent3D *copySize)
     * }
     */
    public static void wgpuCommandEncoderCopyTextureToTexture(MemorySegment commandEncoder, MemorySegment source, MemorySegment destination, MemorySegment copySize) {
        var mh$ = wgpuCommandEncoderCopyTextureToTexture.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderCopyTextureToTexture", commandEncoder, source, destination, copySize);
            }
            mh$.invokeExact(commandEncoder, source, destination, copySize);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderFinish {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderFinish");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, const WGPUCommandBufferDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderFinish$descriptor() {
        return wgpuCommandEncoderFinish.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, const WGPUCommandBufferDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuCommandEncoderFinish$handle() {
        return wgpuCommandEncoderFinish.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, const WGPUCommandBufferDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCommandEncoderFinish$address() {
        return wgpuCommandEncoderFinish.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, const WGPUCommandBufferDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuCommandEncoderFinish(MemorySegment commandEncoder, MemorySegment descriptor) {
        var mh$ = wgpuCommandEncoderFinish.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderFinish", commandEncoder, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(commandEncoder, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderInsertDebugMarker {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderInsertDebugMarker");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, const char *markerLabel)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderInsertDebugMarker$descriptor() {
        return wgpuCommandEncoderInsertDebugMarker.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, const char *markerLabel)
     * }
     */
    public static MethodHandle wgpuCommandEncoderInsertDebugMarker$handle() {
        return wgpuCommandEncoderInsertDebugMarker.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, const char *markerLabel)
     * }
     */
    public static MemorySegment wgpuCommandEncoderInsertDebugMarker$address() {
        return wgpuCommandEncoderInsertDebugMarker.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, const char *markerLabel)
     * }
     */
    public static void wgpuCommandEncoderInsertDebugMarker(MemorySegment commandEncoder, MemorySegment markerLabel) {
        var mh$ = wgpuCommandEncoderInsertDebugMarker.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderInsertDebugMarker", commandEncoder, markerLabel);
            }
            mh$.invokeExact(commandEncoder, markerLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderPopDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderPopDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderPopDebugGroup$descriptor() {
        return wgpuCommandEncoderPopDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static MethodHandle wgpuCommandEncoderPopDebugGroup$handle() {
        return wgpuCommandEncoderPopDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static MemorySegment wgpuCommandEncoderPopDebugGroup$address() {
        return wgpuCommandEncoderPopDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static void wgpuCommandEncoderPopDebugGroup(MemorySegment commandEncoder) {
        var mh$ = wgpuCommandEncoderPopDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderPopDebugGroup", commandEncoder);
            }
            mh$.invokeExact(commandEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderPushDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderPushDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, const char *groupLabel)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderPushDebugGroup$descriptor() {
        return wgpuCommandEncoderPushDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, const char *groupLabel)
     * }
     */
    public static MethodHandle wgpuCommandEncoderPushDebugGroup$handle() {
        return wgpuCommandEncoderPushDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, const char *groupLabel)
     * }
     */
    public static MemorySegment wgpuCommandEncoderPushDebugGroup$address() {
        return wgpuCommandEncoderPushDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, const char *groupLabel)
     * }
     */
    public static void wgpuCommandEncoderPushDebugGroup(MemorySegment commandEncoder, MemorySegment groupLabel) {
        var mh$ = wgpuCommandEncoderPushDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderPushDebugGroup", commandEncoder, groupLabel);
            }
            mh$.invokeExact(commandEncoder, groupLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderResolveQuerySet {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderResolveQuerySet");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderResolveQuerySet$descriptor() {
        return wgpuCommandEncoderResolveQuerySet.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
     * }
     */
    public static MethodHandle wgpuCommandEncoderResolveQuerySet$handle() {
        return wgpuCommandEncoderResolveQuerySet.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
     * }
     */
    public static MemorySegment wgpuCommandEncoderResolveQuerySet$address() {
        return wgpuCommandEncoderResolveQuerySet.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
     * }
     */
    public static void wgpuCommandEncoderResolveQuerySet(MemorySegment commandEncoder, MemorySegment querySet, int firstQuery, int queryCount, MemorySegment destination, long destinationOffset) {
        var mh$ = wgpuCommandEncoderResolveQuerySet.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderResolveQuerySet", commandEncoder, querySet, firstQuery, queryCount, destination, destinationOffset);
            }
            mh$.invokeExact(commandEncoder, querySet, firstQuery, queryCount, destination, destinationOffset);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderSetLabel$descriptor() {
        return wgpuCommandEncoderSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, const char *label)
     * }
     */
    public static MethodHandle wgpuCommandEncoderSetLabel$handle() {
        return wgpuCommandEncoderSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, const char *label)
     * }
     */
    public static MemorySegment wgpuCommandEncoderSetLabel$address() {
        return wgpuCommandEncoderSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, const char *label)
     * }
     */
    public static void wgpuCommandEncoderSetLabel(MemorySegment commandEncoder, MemorySegment label) {
        var mh$ = wgpuCommandEncoderSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderSetLabel", commandEncoder, label);
            }
            mh$.invokeExact(commandEncoder, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderWriteTimestamp {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderWriteTimestamp");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderWriteTimestamp$descriptor() {
        return wgpuCommandEncoderWriteTimestamp.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static MethodHandle wgpuCommandEncoderWriteTimestamp$handle() {
        return wgpuCommandEncoderWriteTimestamp.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static MemorySegment wgpuCommandEncoderWriteTimestamp$address() {
        return wgpuCommandEncoderWriteTimestamp.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static void wgpuCommandEncoderWriteTimestamp(MemorySegment commandEncoder, MemorySegment querySet, int queryIndex) {
        var mh$ = wgpuCommandEncoderWriteTimestamp.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderWriteTimestamp", commandEncoder, querySet, queryIndex);
            }
            mh$.invokeExact(commandEncoder, querySet, queryIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderReference$descriptor() {
        return wgpuCommandEncoderReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static MethodHandle wgpuCommandEncoderReference$handle() {
        return wgpuCommandEncoderReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static MemorySegment wgpuCommandEncoderReference$address() {
        return wgpuCommandEncoderReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static void wgpuCommandEncoderReference(MemorySegment commandEncoder) {
        var mh$ = wgpuCommandEncoderReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderReference", commandEncoder);
            }
            mh$.invokeExact(commandEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuCommandEncoderRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuCommandEncoderRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static FunctionDescriptor wgpuCommandEncoderRelease$descriptor() {
        return wgpuCommandEncoderRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static MethodHandle wgpuCommandEncoderRelease$handle() {
        return wgpuCommandEncoderRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static MemorySegment wgpuCommandEncoderRelease$address() {
        return wgpuCommandEncoderRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
     * }
     */
    public static void wgpuCommandEncoderRelease(MemorySegment commandEncoder) {
        var mh$ = wgpuCommandEncoderRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuCommandEncoderRelease", commandEncoder);
            }
            mh$.invokeExact(commandEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderDispatchWorkgroups {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderDispatchWorkgroups");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderDispatchWorkgroups$descriptor() {
        return wgpuComputePassEncoderDispatchWorkgroups.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderDispatchWorkgroups$handle() {
        return wgpuComputePassEncoderDispatchWorkgroups.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderDispatchWorkgroups$address() {
        return wgpuComputePassEncoderDispatchWorkgroups.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
     * }
     */
    public static void wgpuComputePassEncoderDispatchWorkgroups(MemorySegment computePassEncoder, int workgroupCountX, int workgroupCountY, int workgroupCountZ) {
        var mh$ = wgpuComputePassEncoderDispatchWorkgroups.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderDispatchWorkgroups", computePassEncoder, workgroupCountX, workgroupCountY, workgroupCountZ);
            }
            mh$.invokeExact(computePassEncoder, workgroupCountX, workgroupCountY, workgroupCountZ);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderDispatchWorkgroupsIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderDispatchWorkgroupsIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderDispatchWorkgroupsIndirect$descriptor() {
        return wgpuComputePassEncoderDispatchWorkgroupsIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderDispatchWorkgroupsIndirect$handle() {
        return wgpuComputePassEncoderDispatchWorkgroupsIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderDispatchWorkgroupsIndirect$address() {
        return wgpuComputePassEncoderDispatchWorkgroupsIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static void wgpuComputePassEncoderDispatchWorkgroupsIndirect(MemorySegment computePassEncoder, MemorySegment indirectBuffer, long indirectOffset) {
        var mh$ = wgpuComputePassEncoderDispatchWorkgroupsIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderDispatchWorkgroupsIndirect", computePassEncoder, indirectBuffer, indirectOffset);
            }
            mh$.invokeExact(computePassEncoder, indirectBuffer, indirectOffset);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderEnd {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderEnd");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderEnd$descriptor() {
        return wgpuComputePassEncoderEnd.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderEnd$handle() {
        return wgpuComputePassEncoderEnd.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderEnd$address() {
        return wgpuComputePassEncoderEnd.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static void wgpuComputePassEncoderEnd(MemorySegment computePassEncoder) {
        var mh$ = wgpuComputePassEncoderEnd.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderEnd", computePassEncoder);
            }
            mh$.invokeExact(computePassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderInsertDebugMarker {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderInsertDebugMarker");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, const char *markerLabel)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderInsertDebugMarker$descriptor() {
        return wgpuComputePassEncoderInsertDebugMarker.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, const char *markerLabel)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderInsertDebugMarker$handle() {
        return wgpuComputePassEncoderInsertDebugMarker.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, const char *markerLabel)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderInsertDebugMarker$address() {
        return wgpuComputePassEncoderInsertDebugMarker.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, const char *markerLabel)
     * }
     */
    public static void wgpuComputePassEncoderInsertDebugMarker(MemorySegment computePassEncoder, MemorySegment markerLabel) {
        var mh$ = wgpuComputePassEncoderInsertDebugMarker.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderInsertDebugMarker", computePassEncoder, markerLabel);
            }
            mh$.invokeExact(computePassEncoder, markerLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderPopDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderPopDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderPopDebugGroup$descriptor() {
        return wgpuComputePassEncoderPopDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderPopDebugGroup$handle() {
        return wgpuComputePassEncoderPopDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderPopDebugGroup$address() {
        return wgpuComputePassEncoderPopDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static void wgpuComputePassEncoderPopDebugGroup(MemorySegment computePassEncoder) {
        var mh$ = wgpuComputePassEncoderPopDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderPopDebugGroup", computePassEncoder);
            }
            mh$.invokeExact(computePassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderPushDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderPushDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, const char *groupLabel)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderPushDebugGroup$descriptor() {
        return wgpuComputePassEncoderPushDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, const char *groupLabel)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderPushDebugGroup$handle() {
        return wgpuComputePassEncoderPushDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, const char *groupLabel)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderPushDebugGroup$address() {
        return wgpuComputePassEncoderPushDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, const char *groupLabel)
     * }
     */
    public static void wgpuComputePassEncoderPushDebugGroup(MemorySegment computePassEncoder, MemorySegment groupLabel) {
        var mh$ = wgpuComputePassEncoderPushDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderPushDebugGroup", computePassEncoder, groupLabel);
            }
            mh$.invokeExact(computePassEncoder, groupLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderSetBindGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderSetBindGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderSetBindGroup$descriptor() {
        return wgpuComputePassEncoderSetBindGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderSetBindGroup$handle() {
        return wgpuComputePassEncoderSetBindGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderSetBindGroup$address() {
        return wgpuComputePassEncoderSetBindGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static void wgpuComputePassEncoderSetBindGroup(MemorySegment computePassEncoder, int groupIndex, MemorySegment group, long dynamicOffsetCount, MemorySegment dynamicOffsets) {
        var mh$ = wgpuComputePassEncoderSetBindGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderSetBindGroup", computePassEncoder, groupIndex, group, dynamicOffsetCount, dynamicOffsets);
            }
            mh$.invokeExact(computePassEncoder, groupIndex, group, dynamicOffsetCount, dynamicOffsets);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderSetLabel$descriptor() {
        return wgpuComputePassEncoderSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, const char *label)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderSetLabel$handle() {
        return wgpuComputePassEncoderSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, const char *label)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderSetLabel$address() {
        return wgpuComputePassEncoderSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, const char *label)
     * }
     */
    public static void wgpuComputePassEncoderSetLabel(MemorySegment computePassEncoder, MemorySegment label) {
        var mh$ = wgpuComputePassEncoderSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderSetLabel", computePassEncoder, label);
            }
            mh$.invokeExact(computePassEncoder, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderSetPipeline {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderSetPipeline");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderSetPipeline$descriptor() {
        return wgpuComputePassEncoderSetPipeline.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderSetPipeline$handle() {
        return wgpuComputePassEncoderSetPipeline.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderSetPipeline$address() {
        return wgpuComputePassEncoderSetPipeline.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
     * }
     */
    public static void wgpuComputePassEncoderSetPipeline(MemorySegment computePassEncoder, MemorySegment pipeline) {
        var mh$ = wgpuComputePassEncoderSetPipeline.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderSetPipeline", computePassEncoder, pipeline);
            }
            mh$.invokeExact(computePassEncoder, pipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderReference$descriptor() {
        return wgpuComputePassEncoderReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderReference$handle() {
        return wgpuComputePassEncoderReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderReference$address() {
        return wgpuComputePassEncoderReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static void wgpuComputePassEncoderReference(MemorySegment computePassEncoder) {
        var mh$ = wgpuComputePassEncoderReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderReference", computePassEncoder);
            }
            mh$.invokeExact(computePassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderRelease$descriptor() {
        return wgpuComputePassEncoderRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderRelease$handle() {
        return wgpuComputePassEncoderRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderRelease$address() {
        return wgpuComputePassEncoderRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static void wgpuComputePassEncoderRelease(MemorySegment computePassEncoder) {
        var mh$ = wgpuComputePassEncoderRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderRelease", computePassEncoder);
            }
            mh$.invokeExact(computePassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePipelineGetBindGroupLayout {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePipelineGetBindGroupLayout");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
     * }
     */
    public static FunctionDescriptor wgpuComputePipelineGetBindGroupLayout$descriptor() {
        return wgpuComputePipelineGetBindGroupLayout.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
     * }
     */
    public static MethodHandle wgpuComputePipelineGetBindGroupLayout$handle() {
        return wgpuComputePipelineGetBindGroupLayout.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
     * }
     */
    public static MemorySegment wgpuComputePipelineGetBindGroupLayout$address() {
        return wgpuComputePipelineGetBindGroupLayout.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
     * }
     */
    public static MemorySegment wgpuComputePipelineGetBindGroupLayout(MemorySegment computePipeline, int groupIndex) {
        var mh$ = wgpuComputePipelineGetBindGroupLayout.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePipelineGetBindGroupLayout", computePipeline, groupIndex);
            }
            return (MemorySegment)mh$.invokeExact(computePipeline, groupIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePipelineSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePipelineSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuComputePipelineSetLabel$descriptor() {
        return wgpuComputePipelineSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, const char *label)
     * }
     */
    public static MethodHandle wgpuComputePipelineSetLabel$handle() {
        return wgpuComputePipelineSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, const char *label)
     * }
     */
    public static MemorySegment wgpuComputePipelineSetLabel$address() {
        return wgpuComputePipelineSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, const char *label)
     * }
     */
    public static void wgpuComputePipelineSetLabel(MemorySegment computePipeline, MemorySegment label) {
        var mh$ = wgpuComputePipelineSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePipelineSetLabel", computePipeline, label);
            }
            mh$.invokeExact(computePipeline, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePipelineReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePipelineReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePipelineReference(WGPUComputePipeline computePipeline)
     * }
     */
    public static FunctionDescriptor wgpuComputePipelineReference$descriptor() {
        return wgpuComputePipelineReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePipelineReference(WGPUComputePipeline computePipeline)
     * }
     */
    public static MethodHandle wgpuComputePipelineReference$handle() {
        return wgpuComputePipelineReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePipelineReference(WGPUComputePipeline computePipeline)
     * }
     */
    public static MemorySegment wgpuComputePipelineReference$address() {
        return wgpuComputePipelineReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePipelineReference(WGPUComputePipeline computePipeline)
     * }
     */
    public static void wgpuComputePipelineReference(MemorySegment computePipeline) {
        var mh$ = wgpuComputePipelineReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePipelineReference", computePipeline);
            }
            mh$.invokeExact(computePipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePipelineRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePipelineRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
     * }
     */
    public static FunctionDescriptor wgpuComputePipelineRelease$descriptor() {
        return wgpuComputePipelineRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
     * }
     */
    public static MethodHandle wgpuComputePipelineRelease$handle() {
        return wgpuComputePipelineRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
     * }
     */
    public static MemorySegment wgpuComputePipelineRelease$address() {
        return wgpuComputePipelineRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
     * }
     */
    public static void wgpuComputePipelineRelease(MemorySegment computePipeline) {
        var mh$ = wgpuComputePipelineRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePipelineRelease", computePipeline);
            }
            mh$.invokeExact(computePipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateBindGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateBindGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, const WGPUBindGroupDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateBindGroup$descriptor() {
        return wgpuDeviceCreateBindGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, const WGPUBindGroupDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateBindGroup$handle() {
        return wgpuDeviceCreateBindGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, const WGPUBindGroupDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateBindGroup$address() {
        return wgpuDeviceCreateBindGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, const WGPUBindGroupDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateBindGroup(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateBindGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateBindGroup", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateBindGroupLayout {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateBindGroupLayout");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, const WGPUBindGroupLayoutDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateBindGroupLayout$descriptor() {
        return wgpuDeviceCreateBindGroupLayout.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, const WGPUBindGroupLayoutDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateBindGroupLayout$handle() {
        return wgpuDeviceCreateBindGroupLayout.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, const WGPUBindGroupLayoutDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateBindGroupLayout$address() {
        return wgpuDeviceCreateBindGroupLayout.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, const WGPUBindGroupLayoutDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateBindGroupLayout(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateBindGroupLayout.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateBindGroupLayout", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, const WGPUBufferDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateBuffer$descriptor() {
        return wgpuDeviceCreateBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, const WGPUBufferDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateBuffer$handle() {
        return wgpuDeviceCreateBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, const WGPUBufferDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateBuffer$address() {
        return wgpuDeviceCreateBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, const WGPUBufferDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateBuffer(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateBuffer", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateCommandEncoder {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateCommandEncoder");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, const WGPUCommandEncoderDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateCommandEncoder$descriptor() {
        return wgpuDeviceCreateCommandEncoder.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, const WGPUCommandEncoderDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateCommandEncoder$handle() {
        return wgpuDeviceCreateCommandEncoder.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, const WGPUCommandEncoderDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateCommandEncoder$address() {
        return wgpuDeviceCreateCommandEncoder.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, const WGPUCommandEncoderDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateCommandEncoder(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateCommandEncoder.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateCommandEncoder", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateComputePipeline {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateComputePipeline");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateComputePipeline$descriptor() {
        return wgpuDeviceCreateComputePipeline.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateComputePipeline$handle() {
        return wgpuDeviceCreateComputePipeline.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateComputePipeline$address() {
        return wgpuDeviceCreateComputePipeline.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateComputePipeline(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateComputePipeline.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateComputePipeline", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateComputePipelineAsync {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateComputePipelineAsync");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateComputePipelineAsync$descriptor() {
        return wgpuDeviceCreateComputePipelineAsync.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuDeviceCreateComputePipelineAsync$handle() {
        return wgpuDeviceCreateComputePipelineAsync.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuDeviceCreateComputePipelineAsync$address() {
        return wgpuDeviceCreateComputePipelineAsync.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, const WGPUComputePipelineDescriptor *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static void wgpuDeviceCreateComputePipelineAsync(MemorySegment device, MemorySegment descriptor, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuDeviceCreateComputePipelineAsync.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateComputePipelineAsync", device, descriptor, callback, userdata);
            }
            mh$.invokeExact(device, descriptor, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreatePipelineLayout {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreatePipelineLayout");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, const WGPUPipelineLayoutDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreatePipelineLayout$descriptor() {
        return wgpuDeviceCreatePipelineLayout.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, const WGPUPipelineLayoutDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreatePipelineLayout$handle() {
        return wgpuDeviceCreatePipelineLayout.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, const WGPUPipelineLayoutDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreatePipelineLayout$address() {
        return wgpuDeviceCreatePipelineLayout.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, const WGPUPipelineLayoutDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreatePipelineLayout(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreatePipelineLayout.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreatePipelineLayout", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateQuerySet {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateQuerySet");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, const WGPUQuerySetDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateQuerySet$descriptor() {
        return wgpuDeviceCreateQuerySet.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, const WGPUQuerySetDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateQuerySet$handle() {
        return wgpuDeviceCreateQuerySet.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, const WGPUQuerySetDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateQuerySet$address() {
        return wgpuDeviceCreateQuerySet.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, const WGPUQuerySetDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateQuerySet(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateQuerySet.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateQuerySet", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateRenderBundleEncoder {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateRenderBundleEncoder");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, const WGPURenderBundleEncoderDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateRenderBundleEncoder$descriptor() {
        return wgpuDeviceCreateRenderBundleEncoder.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, const WGPURenderBundleEncoderDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateRenderBundleEncoder$handle() {
        return wgpuDeviceCreateRenderBundleEncoder.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, const WGPURenderBundleEncoderDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateRenderBundleEncoder$address() {
        return wgpuDeviceCreateRenderBundleEncoder.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, const WGPURenderBundleEncoderDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateRenderBundleEncoder(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateRenderBundleEncoder.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateRenderBundleEncoder", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateRenderPipeline {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateRenderPipeline");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateRenderPipeline$descriptor() {
        return wgpuDeviceCreateRenderPipeline.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateRenderPipeline$handle() {
        return wgpuDeviceCreateRenderPipeline.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateRenderPipeline$address() {
        return wgpuDeviceCreateRenderPipeline.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateRenderPipeline(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateRenderPipeline.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateRenderPipeline", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateRenderPipelineAsync {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateRenderPipelineAsync");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateRenderPipelineAsync$descriptor() {
        return wgpuDeviceCreateRenderPipelineAsync.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuDeviceCreateRenderPipelineAsync$handle() {
        return wgpuDeviceCreateRenderPipelineAsync.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuDeviceCreateRenderPipelineAsync$address() {
        return wgpuDeviceCreateRenderPipelineAsync.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, const WGPURenderPipelineDescriptor *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata)
     * }
     */
    public static void wgpuDeviceCreateRenderPipelineAsync(MemorySegment device, MemorySegment descriptor, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuDeviceCreateRenderPipelineAsync.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateRenderPipelineAsync", device, descriptor, callback, userdata);
            }
            mh$.invokeExact(device, descriptor, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateSampler {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateSampler");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, const WGPUSamplerDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateSampler$descriptor() {
        return wgpuDeviceCreateSampler.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, const WGPUSamplerDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateSampler$handle() {
        return wgpuDeviceCreateSampler.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, const WGPUSamplerDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateSampler$address() {
        return wgpuDeviceCreateSampler.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, const WGPUSamplerDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateSampler(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateSampler.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateSampler", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateShaderModule {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateShaderModule");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, const WGPUShaderModuleDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateShaderModule$descriptor() {
        return wgpuDeviceCreateShaderModule.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, const WGPUShaderModuleDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateShaderModule$handle() {
        return wgpuDeviceCreateShaderModule.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, const WGPUShaderModuleDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateShaderModule$address() {
        return wgpuDeviceCreateShaderModule.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, const WGPUShaderModuleDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateShaderModule(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateShaderModule.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateShaderModule", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceCreateTexture {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceCreateTexture");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, const WGPUTextureDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuDeviceCreateTexture$descriptor() {
        return wgpuDeviceCreateTexture.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, const WGPUTextureDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuDeviceCreateTexture$handle() {
        return wgpuDeviceCreateTexture.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, const WGPUTextureDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateTexture$address() {
        return wgpuDeviceCreateTexture.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, const WGPUTextureDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuDeviceCreateTexture(MemorySegment device, MemorySegment descriptor) {
        var mh$ = wgpuDeviceCreateTexture.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceCreateTexture", device, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(device, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceDestroy {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceDestroy");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceDestroy(WGPUDevice device)
     * }
     */
    public static FunctionDescriptor wgpuDeviceDestroy$descriptor() {
        return wgpuDeviceDestroy.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceDestroy(WGPUDevice device)
     * }
     */
    public static MethodHandle wgpuDeviceDestroy$handle() {
        return wgpuDeviceDestroy.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceDestroy(WGPUDevice device)
     * }
     */
    public static MemorySegment wgpuDeviceDestroy$address() {
        return wgpuDeviceDestroy.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceDestroy(WGPUDevice device)
     * }
     */
    public static void wgpuDeviceDestroy(MemorySegment device) {
        var mh$ = wgpuDeviceDestroy.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceDestroy", device);
            }
            mh$.invokeExact(device);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceEnumerateFeatures {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceEnumerateFeatures");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features)
     * }
     */
    public static FunctionDescriptor wgpuDeviceEnumerateFeatures$descriptor() {
        return wgpuDeviceEnumerateFeatures.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features)
     * }
     */
    public static MethodHandle wgpuDeviceEnumerateFeatures$handle() {
        return wgpuDeviceEnumerateFeatures.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features)
     * }
     */
    public static MemorySegment wgpuDeviceEnumerateFeatures$address() {
        return wgpuDeviceEnumerateFeatures.ADDR;
    }

    /**
     * {@snippet lang=c :
     * size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features)
     * }
     */
    public static long wgpuDeviceEnumerateFeatures(MemorySegment device, MemorySegment features) {
        var mh$ = wgpuDeviceEnumerateFeatures.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceEnumerateFeatures", device, features);
            }
            return (long)mh$.invokeExact(device, features);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceGetLimits {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceGetLimits");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits)
     * }
     */
    public static FunctionDescriptor wgpuDeviceGetLimits$descriptor() {
        return wgpuDeviceGetLimits.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits)
     * }
     */
    public static MethodHandle wgpuDeviceGetLimits$handle() {
        return wgpuDeviceGetLimits.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits)
     * }
     */
    public static MemorySegment wgpuDeviceGetLimits$address() {
        return wgpuDeviceGetLimits.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits)
     * }
     */
    public static int wgpuDeviceGetLimits(MemorySegment device, MemorySegment limits) {
        var mh$ = wgpuDeviceGetLimits.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceGetLimits", device, limits);
            }
            return (int)mh$.invokeExact(device, limits);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceGetQueue {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceGetQueue");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
     * }
     */
    public static FunctionDescriptor wgpuDeviceGetQueue$descriptor() {
        return wgpuDeviceGetQueue.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
     * }
     */
    public static MethodHandle wgpuDeviceGetQueue$handle() {
        return wgpuDeviceGetQueue.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
     * }
     */
    public static MemorySegment wgpuDeviceGetQueue$address() {
        return wgpuDeviceGetQueue.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
     * }
     */
    public static MemorySegment wgpuDeviceGetQueue(MemorySegment device) {
        var mh$ = wgpuDeviceGetQueue.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceGetQueue", device);
            }
            return (MemorySegment)mh$.invokeExact(device);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceHasFeature {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceHasFeature");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
     * }
     */
    public static FunctionDescriptor wgpuDeviceHasFeature$descriptor() {
        return wgpuDeviceHasFeature.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
     * }
     */
    public static MethodHandle wgpuDeviceHasFeature$handle() {
        return wgpuDeviceHasFeature.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
     * }
     */
    public static MemorySegment wgpuDeviceHasFeature$address() {
        return wgpuDeviceHasFeature.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
     * }
     */
    public static int wgpuDeviceHasFeature(MemorySegment device, int feature) {
        var mh$ = wgpuDeviceHasFeature.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceHasFeature", device, feature);
            }
            return (int)mh$.invokeExact(device, feature);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDevicePopErrorScope {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDevicePopErrorScope");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuDevicePopErrorScope$descriptor() {
        return wgpuDevicePopErrorScope.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuDevicePopErrorScope$handle() {
        return wgpuDevicePopErrorScope.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuDevicePopErrorScope$address() {
        return wgpuDevicePopErrorScope.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static void wgpuDevicePopErrorScope(MemorySegment device, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuDevicePopErrorScope.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDevicePopErrorScope", device, callback, userdata);
            }
            mh$.invokeExact(device, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDevicePushErrorScope {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDevicePushErrorScope");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
     * }
     */
    public static FunctionDescriptor wgpuDevicePushErrorScope$descriptor() {
        return wgpuDevicePushErrorScope.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
     * }
     */
    public static MethodHandle wgpuDevicePushErrorScope$handle() {
        return wgpuDevicePushErrorScope.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
     * }
     */
    public static MemorySegment wgpuDevicePushErrorScope$address() {
        return wgpuDevicePushErrorScope.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
     * }
     */
    public static void wgpuDevicePushErrorScope(MemorySegment device, int filter) {
        var mh$ = wgpuDevicePushErrorScope.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDevicePushErrorScope", device, filter);
            }
            mh$.invokeExact(device, filter);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceSetLabel(WGPUDevice device, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuDeviceSetLabel$descriptor() {
        return wgpuDeviceSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceSetLabel(WGPUDevice device, const char *label)
     * }
     */
    public static MethodHandle wgpuDeviceSetLabel$handle() {
        return wgpuDeviceSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceSetLabel(WGPUDevice device, const char *label)
     * }
     */
    public static MemorySegment wgpuDeviceSetLabel$address() {
        return wgpuDeviceSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceSetLabel(WGPUDevice device, const char *label)
     * }
     */
    public static void wgpuDeviceSetLabel(MemorySegment device, MemorySegment label) {
        var mh$ = wgpuDeviceSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceSetLabel", device, label);
            }
            mh$.invokeExact(device, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceSetUncapturedErrorCallback {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceSetUncapturedErrorCallback");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuDeviceSetUncapturedErrorCallback$descriptor() {
        return wgpuDeviceSetUncapturedErrorCallback.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuDeviceSetUncapturedErrorCallback$handle() {
        return wgpuDeviceSetUncapturedErrorCallback.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuDeviceSetUncapturedErrorCallback$address() {
        return wgpuDeviceSetUncapturedErrorCallback.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata)
     * }
     */
    public static void wgpuDeviceSetUncapturedErrorCallback(MemorySegment device, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuDeviceSetUncapturedErrorCallback.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceSetUncapturedErrorCallback", device, callback, userdata);
            }
            mh$.invokeExact(device, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceReference(WGPUDevice device)
     * }
     */
    public static FunctionDescriptor wgpuDeviceReference$descriptor() {
        return wgpuDeviceReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceReference(WGPUDevice device)
     * }
     */
    public static MethodHandle wgpuDeviceReference$handle() {
        return wgpuDeviceReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceReference(WGPUDevice device)
     * }
     */
    public static MemorySegment wgpuDeviceReference$address() {
        return wgpuDeviceReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceReference(WGPUDevice device)
     * }
     */
    public static void wgpuDeviceReference(MemorySegment device) {
        var mh$ = wgpuDeviceReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceReference", device);
            }
            mh$.invokeExact(device);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDeviceRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDeviceRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuDeviceRelease(WGPUDevice device)
     * }
     */
    public static FunctionDescriptor wgpuDeviceRelease$descriptor() {
        return wgpuDeviceRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuDeviceRelease(WGPUDevice device)
     * }
     */
    public static MethodHandle wgpuDeviceRelease$handle() {
        return wgpuDeviceRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuDeviceRelease(WGPUDevice device)
     * }
     */
    public static MemorySegment wgpuDeviceRelease$address() {
        return wgpuDeviceRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuDeviceRelease(WGPUDevice device)
     * }
     */
    public static void wgpuDeviceRelease(MemorySegment device) {
        var mh$ = wgpuDeviceRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDeviceRelease", device);
            }
            mh$.invokeExact(device);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuInstanceCreateSurface {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuInstanceCreateSurface");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, const WGPUSurfaceDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuInstanceCreateSurface$descriptor() {
        return wgpuInstanceCreateSurface.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, const WGPUSurfaceDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuInstanceCreateSurface$handle() {
        return wgpuInstanceCreateSurface.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, const WGPUSurfaceDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuInstanceCreateSurface$address() {
        return wgpuInstanceCreateSurface.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, const WGPUSurfaceDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuInstanceCreateSurface(MemorySegment instance, MemorySegment descriptor) {
        var mh$ = wgpuInstanceCreateSurface.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuInstanceCreateSurface", instance, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(instance, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuInstanceProcessEvents {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuInstanceProcessEvents");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuInstanceProcessEvents(WGPUInstance instance)
     * }
     */
    public static FunctionDescriptor wgpuInstanceProcessEvents$descriptor() {
        return wgpuInstanceProcessEvents.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuInstanceProcessEvents(WGPUInstance instance)
     * }
     */
    public static MethodHandle wgpuInstanceProcessEvents$handle() {
        return wgpuInstanceProcessEvents.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuInstanceProcessEvents(WGPUInstance instance)
     * }
     */
    public static MemorySegment wgpuInstanceProcessEvents$address() {
        return wgpuInstanceProcessEvents.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuInstanceProcessEvents(WGPUInstance instance)
     * }
     */
    public static void wgpuInstanceProcessEvents(MemorySegment instance) {
        var mh$ = wgpuInstanceProcessEvents.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuInstanceProcessEvents", instance);
            }
            mh$.invokeExact(instance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuInstanceRequestAdapter {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuInstanceRequestAdapter");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuInstanceRequestAdapter(WGPUInstance instance, const WGPURequestAdapterOptions *options, WGPURequestAdapterCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuInstanceRequestAdapter$descriptor() {
        return wgpuInstanceRequestAdapter.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuInstanceRequestAdapter(WGPUInstance instance, const WGPURequestAdapterOptions *options, WGPURequestAdapterCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuInstanceRequestAdapter$handle() {
        return wgpuInstanceRequestAdapter.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuInstanceRequestAdapter(WGPUInstance instance, const WGPURequestAdapterOptions *options, WGPURequestAdapterCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuInstanceRequestAdapter$address() {
        return wgpuInstanceRequestAdapter.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuInstanceRequestAdapter(WGPUInstance instance, const WGPURequestAdapterOptions *options, WGPURequestAdapterCallback callback, void *userdata)
     * }
     */
    public static void wgpuInstanceRequestAdapter(MemorySegment instance, MemorySegment options, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuInstanceRequestAdapter.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuInstanceRequestAdapter", instance, options, callback, userdata);
            }
            mh$.invokeExact(instance, options, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuInstanceReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuInstanceReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuInstanceReference(WGPUInstance instance)
     * }
     */
    public static FunctionDescriptor wgpuInstanceReference$descriptor() {
        return wgpuInstanceReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuInstanceReference(WGPUInstance instance)
     * }
     */
    public static MethodHandle wgpuInstanceReference$handle() {
        return wgpuInstanceReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuInstanceReference(WGPUInstance instance)
     * }
     */
    public static MemorySegment wgpuInstanceReference$address() {
        return wgpuInstanceReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuInstanceReference(WGPUInstance instance)
     * }
     */
    public static void wgpuInstanceReference(MemorySegment instance) {
        var mh$ = wgpuInstanceReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuInstanceReference", instance);
            }
            mh$.invokeExact(instance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuInstanceRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuInstanceRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuInstanceRelease(WGPUInstance instance)
     * }
     */
    public static FunctionDescriptor wgpuInstanceRelease$descriptor() {
        return wgpuInstanceRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuInstanceRelease(WGPUInstance instance)
     * }
     */
    public static MethodHandle wgpuInstanceRelease$handle() {
        return wgpuInstanceRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuInstanceRelease(WGPUInstance instance)
     * }
     */
    public static MemorySegment wgpuInstanceRelease$address() {
        return wgpuInstanceRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuInstanceRelease(WGPUInstance instance)
     * }
     */
    public static void wgpuInstanceRelease(MemorySegment instance) {
        var mh$ = wgpuInstanceRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuInstanceRelease", instance);
            }
            mh$.invokeExact(instance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuPipelineLayoutSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuPipelineLayoutSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuPipelineLayoutSetLabel$descriptor() {
        return wgpuPipelineLayoutSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, const char *label)
     * }
     */
    public static MethodHandle wgpuPipelineLayoutSetLabel$handle() {
        return wgpuPipelineLayoutSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, const char *label)
     * }
     */
    public static MemorySegment wgpuPipelineLayoutSetLabel$address() {
        return wgpuPipelineLayoutSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, const char *label)
     * }
     */
    public static void wgpuPipelineLayoutSetLabel(MemorySegment pipelineLayout, MemorySegment label) {
        var mh$ = wgpuPipelineLayoutSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuPipelineLayoutSetLabel", pipelineLayout, label);
            }
            mh$.invokeExact(pipelineLayout, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuPipelineLayoutReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuPipelineLayoutReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static FunctionDescriptor wgpuPipelineLayoutReference$descriptor() {
        return wgpuPipelineLayoutReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static MethodHandle wgpuPipelineLayoutReference$handle() {
        return wgpuPipelineLayoutReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static MemorySegment wgpuPipelineLayoutReference$address() {
        return wgpuPipelineLayoutReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static void wgpuPipelineLayoutReference(MemorySegment pipelineLayout) {
        var mh$ = wgpuPipelineLayoutReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuPipelineLayoutReference", pipelineLayout);
            }
            mh$.invokeExact(pipelineLayout);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuPipelineLayoutRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuPipelineLayoutRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static FunctionDescriptor wgpuPipelineLayoutRelease$descriptor() {
        return wgpuPipelineLayoutRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static MethodHandle wgpuPipelineLayoutRelease$handle() {
        return wgpuPipelineLayoutRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static MemorySegment wgpuPipelineLayoutRelease$address() {
        return wgpuPipelineLayoutRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
     * }
     */
    public static void wgpuPipelineLayoutRelease(MemorySegment pipelineLayout) {
        var mh$ = wgpuPipelineLayoutRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuPipelineLayoutRelease", pipelineLayout);
            }
            mh$.invokeExact(pipelineLayout);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQuerySetDestroy {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQuerySetDestroy");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQuerySetDestroy(WGPUQuerySet querySet)
     * }
     */
    public static FunctionDescriptor wgpuQuerySetDestroy$descriptor() {
        return wgpuQuerySetDestroy.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQuerySetDestroy(WGPUQuerySet querySet)
     * }
     */
    public static MethodHandle wgpuQuerySetDestroy$handle() {
        return wgpuQuerySetDestroy.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQuerySetDestroy(WGPUQuerySet querySet)
     * }
     */
    public static MemorySegment wgpuQuerySetDestroy$address() {
        return wgpuQuerySetDestroy.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQuerySetDestroy(WGPUQuerySet querySet)
     * }
     */
    public static void wgpuQuerySetDestroy(MemorySegment querySet) {
        var mh$ = wgpuQuerySetDestroy.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQuerySetDestroy", querySet);
            }
            mh$.invokeExact(querySet);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQuerySetGetCount {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQuerySetGetCount");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
     * }
     */
    public static FunctionDescriptor wgpuQuerySetGetCount$descriptor() {
        return wgpuQuerySetGetCount.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
     * }
     */
    public static MethodHandle wgpuQuerySetGetCount$handle() {
        return wgpuQuerySetGetCount.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
     * }
     */
    public static MemorySegment wgpuQuerySetGetCount$address() {
        return wgpuQuerySetGetCount.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
     * }
     */
    public static int wgpuQuerySetGetCount(MemorySegment querySet) {
        var mh$ = wgpuQuerySetGetCount.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQuerySetGetCount", querySet);
            }
            return (int)mh$.invokeExact(querySet);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQuerySetGetType {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQuerySetGetType");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
     * }
     */
    public static FunctionDescriptor wgpuQuerySetGetType$descriptor() {
        return wgpuQuerySetGetType.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
     * }
     */
    public static MethodHandle wgpuQuerySetGetType$handle() {
        return wgpuQuerySetGetType.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
     * }
     */
    public static MemorySegment wgpuQuerySetGetType$address() {
        return wgpuQuerySetGetType.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
     * }
     */
    public static int wgpuQuerySetGetType(MemorySegment querySet) {
        var mh$ = wgpuQuerySetGetType.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQuerySetGetType", querySet);
            }
            return (int)mh$.invokeExact(querySet);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQuerySetSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQuerySetSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQuerySetSetLabel(WGPUQuerySet querySet, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuQuerySetSetLabel$descriptor() {
        return wgpuQuerySetSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQuerySetSetLabel(WGPUQuerySet querySet, const char *label)
     * }
     */
    public static MethodHandle wgpuQuerySetSetLabel$handle() {
        return wgpuQuerySetSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQuerySetSetLabel(WGPUQuerySet querySet, const char *label)
     * }
     */
    public static MemorySegment wgpuQuerySetSetLabel$address() {
        return wgpuQuerySetSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQuerySetSetLabel(WGPUQuerySet querySet, const char *label)
     * }
     */
    public static void wgpuQuerySetSetLabel(MemorySegment querySet, MemorySegment label) {
        var mh$ = wgpuQuerySetSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQuerySetSetLabel", querySet, label);
            }
            mh$.invokeExact(querySet, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQuerySetReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQuerySetReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQuerySetReference(WGPUQuerySet querySet)
     * }
     */
    public static FunctionDescriptor wgpuQuerySetReference$descriptor() {
        return wgpuQuerySetReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQuerySetReference(WGPUQuerySet querySet)
     * }
     */
    public static MethodHandle wgpuQuerySetReference$handle() {
        return wgpuQuerySetReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQuerySetReference(WGPUQuerySet querySet)
     * }
     */
    public static MemorySegment wgpuQuerySetReference$address() {
        return wgpuQuerySetReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQuerySetReference(WGPUQuerySet querySet)
     * }
     */
    public static void wgpuQuerySetReference(MemorySegment querySet) {
        var mh$ = wgpuQuerySetReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQuerySetReference", querySet);
            }
            mh$.invokeExact(querySet);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQuerySetRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQuerySetRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQuerySetRelease(WGPUQuerySet querySet)
     * }
     */
    public static FunctionDescriptor wgpuQuerySetRelease$descriptor() {
        return wgpuQuerySetRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQuerySetRelease(WGPUQuerySet querySet)
     * }
     */
    public static MethodHandle wgpuQuerySetRelease$handle() {
        return wgpuQuerySetRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQuerySetRelease(WGPUQuerySet querySet)
     * }
     */
    public static MemorySegment wgpuQuerySetRelease$address() {
        return wgpuQuerySetRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQuerySetRelease(WGPUQuerySet querySet)
     * }
     */
    public static void wgpuQuerySetRelease(MemorySegment querySet) {
        var mh$ = wgpuQuerySetRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQuerySetRelease", querySet);
            }
            mh$.invokeExact(querySet);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueOnSubmittedWorkDone {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueOnSubmittedWorkDone");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuQueueOnSubmittedWorkDone$descriptor() {
        return wgpuQueueOnSubmittedWorkDone.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuQueueOnSubmittedWorkDone$handle() {
        return wgpuQueueOnSubmittedWorkDone.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuQueueOnSubmittedWorkDone$address() {
        return wgpuQueueOnSubmittedWorkDone.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata)
     * }
     */
    public static void wgpuQueueOnSubmittedWorkDone(MemorySegment queue, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuQueueOnSubmittedWorkDone.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueOnSubmittedWorkDone", queue, callback, userdata);
            }
            mh$.invokeExact(queue, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueSetLabel(WGPUQueue queue, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuQueueSetLabel$descriptor() {
        return wgpuQueueSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueSetLabel(WGPUQueue queue, const char *label)
     * }
     */
    public static MethodHandle wgpuQueueSetLabel$handle() {
        return wgpuQueueSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueSetLabel(WGPUQueue queue, const char *label)
     * }
     */
    public static MemorySegment wgpuQueueSetLabel$address() {
        return wgpuQueueSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueSetLabel(WGPUQueue queue, const char *label)
     * }
     */
    public static void wgpuQueueSetLabel(MemorySegment queue, MemorySegment label) {
        var mh$ = wgpuQueueSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueSetLabel", queue, label);
            }
            mh$.invokeExact(queue, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueSubmit {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueSubmit");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static FunctionDescriptor wgpuQueueSubmit$descriptor() {
        return wgpuQueueSubmit.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static MethodHandle wgpuQueueSubmit$handle() {
        return wgpuQueueSubmit.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static MemorySegment wgpuQueueSubmit$address() {
        return wgpuQueueSubmit.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static void wgpuQueueSubmit(MemorySegment queue, long commandCount, MemorySegment commands) {
        var mh$ = wgpuQueueSubmit.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueSubmit", queue, commandCount, commands);
            }
            mh$.invokeExact(queue, commandCount, commands);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueWriteBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueWriteBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, const void *data, size_t size)
     * }
     */
    public static FunctionDescriptor wgpuQueueWriteBuffer$descriptor() {
        return wgpuQueueWriteBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, const void *data, size_t size)
     * }
     */
    public static MethodHandle wgpuQueueWriteBuffer$handle() {
        return wgpuQueueWriteBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, const void *data, size_t size)
     * }
     */
    public static MemorySegment wgpuQueueWriteBuffer$address() {
        return wgpuQueueWriteBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, const void *data, size_t size)
     * }
     */
    public static void wgpuQueueWriteBuffer(MemorySegment queue, MemorySegment buffer, long bufferOffset, MemorySegment data, long size) {
        var mh$ = wgpuQueueWriteBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueWriteBuffer", queue, buffer, bufferOffset, data, size);
            }
            mh$.invokeExact(queue, buffer, bufferOffset, data, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueWriteTexture {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueWriteTexture");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueWriteTexture(WGPUQueue queue, const WGPUImageCopyTexture *destination, const void *data, size_t dataSize, const WGPUTextureDataLayout *dataLayout, const WGPUExtent3D *writeSize)
     * }
     */
    public static FunctionDescriptor wgpuQueueWriteTexture$descriptor() {
        return wgpuQueueWriteTexture.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueWriteTexture(WGPUQueue queue, const WGPUImageCopyTexture *destination, const void *data, size_t dataSize, const WGPUTextureDataLayout *dataLayout, const WGPUExtent3D *writeSize)
     * }
     */
    public static MethodHandle wgpuQueueWriteTexture$handle() {
        return wgpuQueueWriteTexture.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueWriteTexture(WGPUQueue queue, const WGPUImageCopyTexture *destination, const void *data, size_t dataSize, const WGPUTextureDataLayout *dataLayout, const WGPUExtent3D *writeSize)
     * }
     */
    public static MemorySegment wgpuQueueWriteTexture$address() {
        return wgpuQueueWriteTexture.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueWriteTexture(WGPUQueue queue, const WGPUImageCopyTexture *destination, const void *data, size_t dataSize, const WGPUTextureDataLayout *dataLayout, const WGPUExtent3D *writeSize)
     * }
     */
    public static void wgpuQueueWriteTexture(MemorySegment queue, MemorySegment destination, MemorySegment data, long dataSize, MemorySegment dataLayout, MemorySegment writeSize) {
        var mh$ = wgpuQueueWriteTexture.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueWriteTexture", queue, destination, data, dataSize, dataLayout, writeSize);
            }
            mh$.invokeExact(queue, destination, data, dataSize, dataLayout, writeSize);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueReference(WGPUQueue queue)
     * }
     */
    public static FunctionDescriptor wgpuQueueReference$descriptor() {
        return wgpuQueueReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueReference(WGPUQueue queue)
     * }
     */
    public static MethodHandle wgpuQueueReference$handle() {
        return wgpuQueueReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueReference(WGPUQueue queue)
     * }
     */
    public static MemorySegment wgpuQueueReference$address() {
        return wgpuQueueReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueReference(WGPUQueue queue)
     * }
     */
    public static void wgpuQueueReference(MemorySegment queue) {
        var mh$ = wgpuQueueReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueReference", queue);
            }
            mh$.invokeExact(queue);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuQueueRelease(WGPUQueue queue)
     * }
     */
    public static FunctionDescriptor wgpuQueueRelease$descriptor() {
        return wgpuQueueRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuQueueRelease(WGPUQueue queue)
     * }
     */
    public static MethodHandle wgpuQueueRelease$handle() {
        return wgpuQueueRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuQueueRelease(WGPUQueue queue)
     * }
     */
    public static MemorySegment wgpuQueueRelease$address() {
        return wgpuQueueRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuQueueRelease(WGPUQueue queue)
     * }
     */
    public static void wgpuQueueRelease(MemorySegment queue) {
        var mh$ = wgpuQueueRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueRelease", queue);
            }
            mh$.invokeExact(queue);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleSetLabel$descriptor() {
        return wgpuRenderBundleSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, const char *label)
     * }
     */
    public static MethodHandle wgpuRenderBundleSetLabel$handle() {
        return wgpuRenderBundleSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, const char *label)
     * }
     */
    public static MemorySegment wgpuRenderBundleSetLabel$address() {
        return wgpuRenderBundleSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, const char *label)
     * }
     */
    public static void wgpuRenderBundleSetLabel(MemorySegment renderBundle, MemorySegment label) {
        var mh$ = wgpuRenderBundleSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleSetLabel", renderBundle, label);
            }
            mh$.invokeExact(renderBundle, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleReference(WGPURenderBundle renderBundle)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleReference$descriptor() {
        return wgpuRenderBundleReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleReference(WGPURenderBundle renderBundle)
     * }
     */
    public static MethodHandle wgpuRenderBundleReference$handle() {
        return wgpuRenderBundleReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleReference(WGPURenderBundle renderBundle)
     * }
     */
    public static MemorySegment wgpuRenderBundleReference$address() {
        return wgpuRenderBundleReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleReference(WGPURenderBundle renderBundle)
     * }
     */
    public static void wgpuRenderBundleReference(MemorySegment renderBundle) {
        var mh$ = wgpuRenderBundleReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleReference", renderBundle);
            }
            mh$.invokeExact(renderBundle);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleRelease$descriptor() {
        return wgpuRenderBundleRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
     * }
     */
    public static MethodHandle wgpuRenderBundleRelease$handle() {
        return wgpuRenderBundleRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
     * }
     */
    public static MemorySegment wgpuRenderBundleRelease$address() {
        return wgpuRenderBundleRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
     * }
     */
    public static void wgpuRenderBundleRelease(MemorySegment renderBundle) {
        var mh$ = wgpuRenderBundleRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleRelease", renderBundle);
            }
            mh$.invokeExact(renderBundle);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderDraw {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderDraw");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderDraw$descriptor() {
        return wgpuRenderBundleEncoderDraw.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderDraw$handle() {
        return wgpuRenderBundleEncoderDraw.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderDraw$address() {
        return wgpuRenderBundleEncoderDraw.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static void wgpuRenderBundleEncoderDraw(MemorySegment renderBundleEncoder, int vertexCount, int instanceCount, int firstVertex, int firstInstance) {
        var mh$ = wgpuRenderBundleEncoderDraw.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderDraw", renderBundleEncoder, vertexCount, instanceCount, firstVertex, firstInstance);
            }
            mh$.invokeExact(renderBundleEncoder, vertexCount, instanceCount, firstVertex, firstInstance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderDrawIndexed {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderDrawIndexed");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderDrawIndexed$descriptor() {
        return wgpuRenderBundleEncoderDrawIndexed.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderDrawIndexed$handle() {
        return wgpuRenderBundleEncoderDrawIndexed.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderDrawIndexed$address() {
        return wgpuRenderBundleEncoderDrawIndexed.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static void wgpuRenderBundleEncoderDrawIndexed(MemorySegment renderBundleEncoder, int indexCount, int instanceCount, int firstIndex, int baseVertex, int firstInstance) {
        var mh$ = wgpuRenderBundleEncoderDrawIndexed.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderDrawIndexed", renderBundleEncoder, indexCount, instanceCount, firstIndex, baseVertex, firstInstance);
            }
            mh$.invokeExact(renderBundleEncoder, indexCount, instanceCount, firstIndex, baseVertex, firstInstance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderDrawIndexedIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderDrawIndexedIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderDrawIndexedIndirect$descriptor() {
        return wgpuRenderBundleEncoderDrawIndexedIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderDrawIndexedIndirect$handle() {
        return wgpuRenderBundleEncoderDrawIndexedIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderDrawIndexedIndirect$address() {
        return wgpuRenderBundleEncoderDrawIndexedIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static void wgpuRenderBundleEncoderDrawIndexedIndirect(MemorySegment renderBundleEncoder, MemorySegment indirectBuffer, long indirectOffset) {
        var mh$ = wgpuRenderBundleEncoderDrawIndexedIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderDrawIndexedIndirect", renderBundleEncoder, indirectBuffer, indirectOffset);
            }
            mh$.invokeExact(renderBundleEncoder, indirectBuffer, indirectOffset);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderDrawIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderDrawIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderDrawIndirect$descriptor() {
        return wgpuRenderBundleEncoderDrawIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderDrawIndirect$handle() {
        return wgpuRenderBundleEncoderDrawIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderDrawIndirect$address() {
        return wgpuRenderBundleEncoderDrawIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static void wgpuRenderBundleEncoderDrawIndirect(MemorySegment renderBundleEncoder, MemorySegment indirectBuffer, long indirectOffset) {
        var mh$ = wgpuRenderBundleEncoderDrawIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderDrawIndirect", renderBundleEncoder, indirectBuffer, indirectOffset);
            }
            mh$.invokeExact(renderBundleEncoder, indirectBuffer, indirectOffset);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderFinish {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderFinish");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, const WGPURenderBundleDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderFinish$descriptor() {
        return wgpuRenderBundleEncoderFinish.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, const WGPURenderBundleDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderFinish$handle() {
        return wgpuRenderBundleEncoderFinish.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, const WGPURenderBundleDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderFinish$address() {
        return wgpuRenderBundleEncoderFinish.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, const WGPURenderBundleDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderFinish(MemorySegment renderBundleEncoder, MemorySegment descriptor) {
        var mh$ = wgpuRenderBundleEncoderFinish.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderFinish", renderBundleEncoder, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(renderBundleEncoder, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderInsertDebugMarker {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderInsertDebugMarker");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, const char *markerLabel)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderInsertDebugMarker$descriptor() {
        return wgpuRenderBundleEncoderInsertDebugMarker.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, const char *markerLabel)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderInsertDebugMarker$handle() {
        return wgpuRenderBundleEncoderInsertDebugMarker.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, const char *markerLabel)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderInsertDebugMarker$address() {
        return wgpuRenderBundleEncoderInsertDebugMarker.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, const char *markerLabel)
     * }
     */
    public static void wgpuRenderBundleEncoderInsertDebugMarker(MemorySegment renderBundleEncoder, MemorySegment markerLabel) {
        var mh$ = wgpuRenderBundleEncoderInsertDebugMarker.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderInsertDebugMarker", renderBundleEncoder, markerLabel);
            }
            mh$.invokeExact(renderBundleEncoder, markerLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderPopDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderPopDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderPopDebugGroup$descriptor() {
        return wgpuRenderBundleEncoderPopDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderPopDebugGroup$handle() {
        return wgpuRenderBundleEncoderPopDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderPopDebugGroup$address() {
        return wgpuRenderBundleEncoderPopDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static void wgpuRenderBundleEncoderPopDebugGroup(MemorySegment renderBundleEncoder) {
        var mh$ = wgpuRenderBundleEncoderPopDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderPopDebugGroup", renderBundleEncoder);
            }
            mh$.invokeExact(renderBundleEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderPushDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderPushDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, const char *groupLabel)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderPushDebugGroup$descriptor() {
        return wgpuRenderBundleEncoderPushDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, const char *groupLabel)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderPushDebugGroup$handle() {
        return wgpuRenderBundleEncoderPushDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, const char *groupLabel)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderPushDebugGroup$address() {
        return wgpuRenderBundleEncoderPushDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, const char *groupLabel)
     * }
     */
    public static void wgpuRenderBundleEncoderPushDebugGroup(MemorySegment renderBundleEncoder, MemorySegment groupLabel) {
        var mh$ = wgpuRenderBundleEncoderPushDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderPushDebugGroup", renderBundleEncoder, groupLabel);
            }
            mh$.invokeExact(renderBundleEncoder, groupLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderSetBindGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderSetBindGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderSetBindGroup$descriptor() {
        return wgpuRenderBundleEncoderSetBindGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderSetBindGroup$handle() {
        return wgpuRenderBundleEncoderSetBindGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderSetBindGroup$address() {
        return wgpuRenderBundleEncoderSetBindGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static void wgpuRenderBundleEncoderSetBindGroup(MemorySegment renderBundleEncoder, int groupIndex, MemorySegment group, long dynamicOffsetCount, MemorySegment dynamicOffsets) {
        var mh$ = wgpuRenderBundleEncoderSetBindGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderSetBindGroup", renderBundleEncoder, groupIndex, group, dynamicOffsetCount, dynamicOffsets);
            }
            mh$.invokeExact(renderBundleEncoder, groupIndex, group, dynamicOffsetCount, dynamicOffsets);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderSetIndexBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderSetIndexBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderSetIndexBuffer$descriptor() {
        return wgpuRenderBundleEncoderSetIndexBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderSetIndexBuffer$handle() {
        return wgpuRenderBundleEncoderSetIndexBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderSetIndexBuffer$address() {
        return wgpuRenderBundleEncoderSetIndexBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static void wgpuRenderBundleEncoderSetIndexBuffer(MemorySegment renderBundleEncoder, MemorySegment buffer, int format, long offset, long size) {
        var mh$ = wgpuRenderBundleEncoderSetIndexBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderSetIndexBuffer", renderBundleEncoder, buffer, format, offset, size);
            }
            mh$.invokeExact(renderBundleEncoder, buffer, format, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderSetLabel$descriptor() {
        return wgpuRenderBundleEncoderSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, const char *label)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderSetLabel$handle() {
        return wgpuRenderBundleEncoderSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, const char *label)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderSetLabel$address() {
        return wgpuRenderBundleEncoderSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, const char *label)
     * }
     */
    public static void wgpuRenderBundleEncoderSetLabel(MemorySegment renderBundleEncoder, MemorySegment label) {
        var mh$ = wgpuRenderBundleEncoderSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderSetLabel", renderBundleEncoder, label);
            }
            mh$.invokeExact(renderBundleEncoder, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderSetPipeline {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderSetPipeline");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderSetPipeline$descriptor() {
        return wgpuRenderBundleEncoderSetPipeline.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderSetPipeline$handle() {
        return wgpuRenderBundleEncoderSetPipeline.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderSetPipeline$address() {
        return wgpuRenderBundleEncoderSetPipeline.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static void wgpuRenderBundleEncoderSetPipeline(MemorySegment renderBundleEncoder, MemorySegment pipeline) {
        var mh$ = wgpuRenderBundleEncoderSetPipeline.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderSetPipeline", renderBundleEncoder, pipeline);
            }
            mh$.invokeExact(renderBundleEncoder, pipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderSetVertexBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderSetVertexBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderSetVertexBuffer$descriptor() {
        return wgpuRenderBundleEncoderSetVertexBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderSetVertexBuffer$handle() {
        return wgpuRenderBundleEncoderSetVertexBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderSetVertexBuffer$address() {
        return wgpuRenderBundleEncoderSetVertexBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static void wgpuRenderBundleEncoderSetVertexBuffer(MemorySegment renderBundleEncoder, int slot, MemorySegment buffer, long offset, long size) {
        var mh$ = wgpuRenderBundleEncoderSetVertexBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderSetVertexBuffer", renderBundleEncoder, slot, buffer, offset, size);
            }
            mh$.invokeExact(renderBundleEncoder, slot, buffer, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderReference$descriptor() {
        return wgpuRenderBundleEncoderReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderReference$handle() {
        return wgpuRenderBundleEncoderReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderReference$address() {
        return wgpuRenderBundleEncoderReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static void wgpuRenderBundleEncoderReference(MemorySegment renderBundleEncoder) {
        var mh$ = wgpuRenderBundleEncoderReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderReference", renderBundleEncoder);
            }
            mh$.invokeExact(renderBundleEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderBundleEncoderRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderBundleEncoderRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderBundleEncoderRelease$descriptor() {
        return wgpuRenderBundleEncoderRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static MethodHandle wgpuRenderBundleEncoderRelease$handle() {
        return wgpuRenderBundleEncoderRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static MemorySegment wgpuRenderBundleEncoderRelease$address() {
        return wgpuRenderBundleEncoderRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
     * }
     */
    public static void wgpuRenderBundleEncoderRelease(MemorySegment renderBundleEncoder) {
        var mh$ = wgpuRenderBundleEncoderRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderBundleEncoderRelease", renderBundleEncoder);
            }
            mh$.invokeExact(renderBundleEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderBeginOcclusionQuery {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderBeginOcclusionQuery");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderBeginOcclusionQuery$descriptor() {
        return wgpuRenderPassEncoderBeginOcclusionQuery.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderBeginOcclusionQuery$handle() {
        return wgpuRenderPassEncoderBeginOcclusionQuery.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderBeginOcclusionQuery$address() {
        return wgpuRenderPassEncoderBeginOcclusionQuery.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
     * }
     */
    public static void wgpuRenderPassEncoderBeginOcclusionQuery(MemorySegment renderPassEncoder, int queryIndex) {
        var mh$ = wgpuRenderPassEncoderBeginOcclusionQuery.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderBeginOcclusionQuery", renderPassEncoder, queryIndex);
            }
            mh$.invokeExact(renderPassEncoder, queryIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderDraw {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderDraw");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderDraw$descriptor() {
        return wgpuRenderPassEncoderDraw.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderDraw$handle() {
        return wgpuRenderPassEncoderDraw.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderDraw$address() {
        return wgpuRenderPassEncoderDraw.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
     * }
     */
    public static void wgpuRenderPassEncoderDraw(MemorySegment renderPassEncoder, int vertexCount, int instanceCount, int firstVertex, int firstInstance) {
        var mh$ = wgpuRenderPassEncoderDraw.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderDraw", renderPassEncoder, vertexCount, instanceCount, firstVertex, firstInstance);
            }
            mh$.invokeExact(renderPassEncoder, vertexCount, instanceCount, firstVertex, firstInstance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderDrawIndexed {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderDrawIndexed");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderDrawIndexed$descriptor() {
        return wgpuRenderPassEncoderDrawIndexed.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderDrawIndexed$handle() {
        return wgpuRenderPassEncoderDrawIndexed.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderDrawIndexed$address() {
        return wgpuRenderPassEncoderDrawIndexed.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
     * }
     */
    public static void wgpuRenderPassEncoderDrawIndexed(MemorySegment renderPassEncoder, int indexCount, int instanceCount, int firstIndex, int baseVertex, int firstInstance) {
        var mh$ = wgpuRenderPassEncoderDrawIndexed.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderDrawIndexed", renderPassEncoder, indexCount, instanceCount, firstIndex, baseVertex, firstInstance);
            }
            mh$.invokeExact(renderPassEncoder, indexCount, instanceCount, firstIndex, baseVertex, firstInstance);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderDrawIndexedIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderDrawIndexedIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderDrawIndexedIndirect$descriptor() {
        return wgpuRenderPassEncoderDrawIndexedIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderDrawIndexedIndirect$handle() {
        return wgpuRenderPassEncoderDrawIndexedIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderDrawIndexedIndirect$address() {
        return wgpuRenderPassEncoderDrawIndexedIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static void wgpuRenderPassEncoderDrawIndexedIndirect(MemorySegment renderPassEncoder, MemorySegment indirectBuffer, long indirectOffset) {
        var mh$ = wgpuRenderPassEncoderDrawIndexedIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderDrawIndexedIndirect", renderPassEncoder, indirectBuffer, indirectOffset);
            }
            mh$.invokeExact(renderPassEncoder, indirectBuffer, indirectOffset);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderDrawIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderDrawIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderDrawIndirect$descriptor() {
        return wgpuRenderPassEncoderDrawIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderDrawIndirect$handle() {
        return wgpuRenderPassEncoderDrawIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderDrawIndirect$address() {
        return wgpuRenderPassEncoderDrawIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
     * }
     */
    public static void wgpuRenderPassEncoderDrawIndirect(MemorySegment renderPassEncoder, MemorySegment indirectBuffer, long indirectOffset) {
        var mh$ = wgpuRenderPassEncoderDrawIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderDrawIndirect", renderPassEncoder, indirectBuffer, indirectOffset);
            }
            mh$.invokeExact(renderPassEncoder, indirectBuffer, indirectOffset);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderEnd {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderEnd");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderEnd$descriptor() {
        return wgpuRenderPassEncoderEnd.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderEnd$handle() {
        return wgpuRenderPassEncoderEnd.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderEnd$address() {
        return wgpuRenderPassEncoderEnd.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static void wgpuRenderPassEncoderEnd(MemorySegment renderPassEncoder) {
        var mh$ = wgpuRenderPassEncoderEnd.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderEnd", renderPassEncoder);
            }
            mh$.invokeExact(renderPassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderEndOcclusionQuery {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderEndOcclusionQuery");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderEndOcclusionQuery$descriptor() {
        return wgpuRenderPassEncoderEndOcclusionQuery.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderEndOcclusionQuery$handle() {
        return wgpuRenderPassEncoderEndOcclusionQuery.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderEndOcclusionQuery$address() {
        return wgpuRenderPassEncoderEndOcclusionQuery.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static void wgpuRenderPassEncoderEndOcclusionQuery(MemorySegment renderPassEncoder) {
        var mh$ = wgpuRenderPassEncoderEndOcclusionQuery.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderEndOcclusionQuery", renderPassEncoder);
            }
            mh$.invokeExact(renderPassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderExecuteBundles {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderExecuteBundles");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, const WGPURenderBundle *bundles)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderExecuteBundles$descriptor() {
        return wgpuRenderPassEncoderExecuteBundles.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, const WGPURenderBundle *bundles)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderExecuteBundles$handle() {
        return wgpuRenderPassEncoderExecuteBundles.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, const WGPURenderBundle *bundles)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderExecuteBundles$address() {
        return wgpuRenderPassEncoderExecuteBundles.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, const WGPURenderBundle *bundles)
     * }
     */
    public static void wgpuRenderPassEncoderExecuteBundles(MemorySegment renderPassEncoder, long bundleCount, MemorySegment bundles) {
        var mh$ = wgpuRenderPassEncoderExecuteBundles.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderExecuteBundles", renderPassEncoder, bundleCount, bundles);
            }
            mh$.invokeExact(renderPassEncoder, bundleCount, bundles);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderInsertDebugMarker {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderInsertDebugMarker");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, const char *markerLabel)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderInsertDebugMarker$descriptor() {
        return wgpuRenderPassEncoderInsertDebugMarker.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, const char *markerLabel)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderInsertDebugMarker$handle() {
        return wgpuRenderPassEncoderInsertDebugMarker.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, const char *markerLabel)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderInsertDebugMarker$address() {
        return wgpuRenderPassEncoderInsertDebugMarker.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, const char *markerLabel)
     * }
     */
    public static void wgpuRenderPassEncoderInsertDebugMarker(MemorySegment renderPassEncoder, MemorySegment markerLabel) {
        var mh$ = wgpuRenderPassEncoderInsertDebugMarker.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderInsertDebugMarker", renderPassEncoder, markerLabel);
            }
            mh$.invokeExact(renderPassEncoder, markerLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderPopDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderPopDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderPopDebugGroup$descriptor() {
        return wgpuRenderPassEncoderPopDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderPopDebugGroup$handle() {
        return wgpuRenderPassEncoderPopDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderPopDebugGroup$address() {
        return wgpuRenderPassEncoderPopDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static void wgpuRenderPassEncoderPopDebugGroup(MemorySegment renderPassEncoder) {
        var mh$ = wgpuRenderPassEncoderPopDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderPopDebugGroup", renderPassEncoder);
            }
            mh$.invokeExact(renderPassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderPushDebugGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderPushDebugGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, const char *groupLabel)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderPushDebugGroup$descriptor() {
        return wgpuRenderPassEncoderPushDebugGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, const char *groupLabel)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderPushDebugGroup$handle() {
        return wgpuRenderPassEncoderPushDebugGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, const char *groupLabel)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderPushDebugGroup$address() {
        return wgpuRenderPassEncoderPushDebugGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, const char *groupLabel)
     * }
     */
    public static void wgpuRenderPassEncoderPushDebugGroup(MemorySegment renderPassEncoder, MemorySegment groupLabel) {
        var mh$ = wgpuRenderPassEncoderPushDebugGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderPushDebugGroup", renderPassEncoder, groupLabel);
            }
            mh$.invokeExact(renderPassEncoder, groupLabel);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetBindGroup {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetBindGroup");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetBindGroup$descriptor() {
        return wgpuRenderPassEncoderSetBindGroup.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetBindGroup$handle() {
        return wgpuRenderPassEncoderSetBindGroup.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetBindGroup$address() {
        return wgpuRenderPassEncoderSetBindGroup.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, const uint32_t *dynamicOffsets)
     * }
     */
    public static void wgpuRenderPassEncoderSetBindGroup(MemorySegment renderPassEncoder, int groupIndex, MemorySegment group, long dynamicOffsetCount, MemorySegment dynamicOffsets) {
        var mh$ = wgpuRenderPassEncoderSetBindGroup.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetBindGroup", renderPassEncoder, groupIndex, group, dynamicOffsetCount, dynamicOffsets);
            }
            mh$.invokeExact(renderPassEncoder, groupIndex, group, dynamicOffsetCount, dynamicOffsets);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetBlendConstant {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetBlendConstant");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, const WGPUColor *color)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetBlendConstant$descriptor() {
        return wgpuRenderPassEncoderSetBlendConstant.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, const WGPUColor *color)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetBlendConstant$handle() {
        return wgpuRenderPassEncoderSetBlendConstant.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, const WGPUColor *color)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetBlendConstant$address() {
        return wgpuRenderPassEncoderSetBlendConstant.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, const WGPUColor *color)
     * }
     */
    public static void wgpuRenderPassEncoderSetBlendConstant(MemorySegment renderPassEncoder, MemorySegment color) {
        var mh$ = wgpuRenderPassEncoderSetBlendConstant.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetBlendConstant", renderPassEncoder, color);
            }
            mh$.invokeExact(renderPassEncoder, color);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetIndexBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetIndexBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetIndexBuffer$descriptor() {
        return wgpuRenderPassEncoderSetIndexBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetIndexBuffer$handle() {
        return wgpuRenderPassEncoderSetIndexBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetIndexBuffer$address() {
        return wgpuRenderPassEncoderSetIndexBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
     * }
     */
    public static void wgpuRenderPassEncoderSetIndexBuffer(MemorySegment renderPassEncoder, MemorySegment buffer, int format, long offset, long size) {
        var mh$ = wgpuRenderPassEncoderSetIndexBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetIndexBuffer", renderPassEncoder, buffer, format, offset, size);
            }
            mh$.invokeExact(renderPassEncoder, buffer, format, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetLabel$descriptor() {
        return wgpuRenderPassEncoderSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, const char *label)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetLabel$handle() {
        return wgpuRenderPassEncoderSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, const char *label)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetLabel$address() {
        return wgpuRenderPassEncoderSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, const char *label)
     * }
     */
    public static void wgpuRenderPassEncoderSetLabel(MemorySegment renderPassEncoder, MemorySegment label) {
        var mh$ = wgpuRenderPassEncoderSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetLabel", renderPassEncoder, label);
            }
            mh$.invokeExact(renderPassEncoder, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetPipeline {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetPipeline");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetPipeline$descriptor() {
        return wgpuRenderPassEncoderSetPipeline.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetPipeline$handle() {
        return wgpuRenderPassEncoderSetPipeline.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetPipeline$address() {
        return wgpuRenderPassEncoderSetPipeline.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
     * }
     */
    public static void wgpuRenderPassEncoderSetPipeline(MemorySegment renderPassEncoder, MemorySegment pipeline) {
        var mh$ = wgpuRenderPassEncoderSetPipeline.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetPipeline", renderPassEncoder, pipeline);
            }
            mh$.invokeExact(renderPassEncoder, pipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetScissorRect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetScissorRect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetScissorRect$descriptor() {
        return wgpuRenderPassEncoderSetScissorRect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetScissorRect$handle() {
        return wgpuRenderPassEncoderSetScissorRect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetScissorRect$address() {
        return wgpuRenderPassEncoderSetScissorRect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
     * }
     */
    public static void wgpuRenderPassEncoderSetScissorRect(MemorySegment renderPassEncoder, int x, int y, int width, int height) {
        var mh$ = wgpuRenderPassEncoderSetScissorRect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetScissorRect", renderPassEncoder, x, y, width, height);
            }
            mh$.invokeExact(renderPassEncoder, x, y, width, height);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetStencilReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetStencilReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetStencilReference$descriptor() {
        return wgpuRenderPassEncoderSetStencilReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetStencilReference$handle() {
        return wgpuRenderPassEncoderSetStencilReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetStencilReference$address() {
        return wgpuRenderPassEncoderSetStencilReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
     * }
     */
    public static void wgpuRenderPassEncoderSetStencilReference(MemorySegment renderPassEncoder, int reference) {
        var mh$ = wgpuRenderPassEncoderSetStencilReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetStencilReference", renderPassEncoder, reference);
            }
            mh$.invokeExact(renderPassEncoder, reference);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetVertexBuffer {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_LONG_LONG
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetVertexBuffer");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetVertexBuffer$descriptor() {
        return wgpuRenderPassEncoderSetVertexBuffer.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetVertexBuffer$handle() {
        return wgpuRenderPassEncoderSetVertexBuffer.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetVertexBuffer$address() {
        return wgpuRenderPassEncoderSetVertexBuffer.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
     * }
     */
    public static void wgpuRenderPassEncoderSetVertexBuffer(MemorySegment renderPassEncoder, int slot, MemorySegment buffer, long offset, long size) {
        var mh$ = wgpuRenderPassEncoderSetVertexBuffer.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetVertexBuffer", renderPassEncoder, slot, buffer, offset, size);
            }
            mh$.invokeExact(renderPassEncoder, slot, buffer, offset, size);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetViewport {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_FLOAT,
            WGPU.C_FLOAT,
            WGPU.C_FLOAT,
            WGPU.C_FLOAT,
            WGPU.C_FLOAT,
            WGPU.C_FLOAT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetViewport");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetViewport$descriptor() {
        return wgpuRenderPassEncoderSetViewport.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetViewport$handle() {
        return wgpuRenderPassEncoderSetViewport.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetViewport$address() {
        return wgpuRenderPassEncoderSetViewport.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
     * }
     */
    public static void wgpuRenderPassEncoderSetViewport(MemorySegment renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) {
        var mh$ = wgpuRenderPassEncoderSetViewport.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetViewport", renderPassEncoder, x, y, width, height, minDepth, maxDepth);
            }
            mh$.invokeExact(renderPassEncoder, x, y, width, height, minDepth, maxDepth);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderReference$descriptor() {
        return wgpuRenderPassEncoderReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderReference$handle() {
        return wgpuRenderPassEncoderReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderReference$address() {
        return wgpuRenderPassEncoderReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static void wgpuRenderPassEncoderReference(MemorySegment renderPassEncoder) {
        var mh$ = wgpuRenderPassEncoderReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderReference", renderPassEncoder);
            }
            mh$.invokeExact(renderPassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderRelease$descriptor() {
        return wgpuRenderPassEncoderRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderRelease$handle() {
        return wgpuRenderPassEncoderRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderRelease$address() {
        return wgpuRenderPassEncoderRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static void wgpuRenderPassEncoderRelease(MemorySegment renderPassEncoder) {
        var mh$ = wgpuRenderPassEncoderRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderRelease", renderPassEncoder);
            }
            mh$.invokeExact(renderPassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPipelineGetBindGroupLayout {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPipelineGetBindGroupLayout");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
     * }
     */
    public static FunctionDescriptor wgpuRenderPipelineGetBindGroupLayout$descriptor() {
        return wgpuRenderPipelineGetBindGroupLayout.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
     * }
     */
    public static MethodHandle wgpuRenderPipelineGetBindGroupLayout$handle() {
        return wgpuRenderPipelineGetBindGroupLayout.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
     * }
     */
    public static MemorySegment wgpuRenderPipelineGetBindGroupLayout$address() {
        return wgpuRenderPipelineGetBindGroupLayout.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
     * }
     */
    public static MemorySegment wgpuRenderPipelineGetBindGroupLayout(MemorySegment renderPipeline, int groupIndex) {
        var mh$ = wgpuRenderPipelineGetBindGroupLayout.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPipelineGetBindGroupLayout", renderPipeline, groupIndex);
            }
            return (MemorySegment)mh$.invokeExact(renderPipeline, groupIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPipelineSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPipelineSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuRenderPipelineSetLabel$descriptor() {
        return wgpuRenderPipelineSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, const char *label)
     * }
     */
    public static MethodHandle wgpuRenderPipelineSetLabel$handle() {
        return wgpuRenderPipelineSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, const char *label)
     * }
     */
    public static MemorySegment wgpuRenderPipelineSetLabel$address() {
        return wgpuRenderPipelineSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, const char *label)
     * }
     */
    public static void wgpuRenderPipelineSetLabel(MemorySegment renderPipeline, MemorySegment label) {
        var mh$ = wgpuRenderPipelineSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPipelineSetLabel", renderPipeline, label);
            }
            mh$.invokeExact(renderPipeline, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPipelineReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPipelineReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline)
     * }
     */
    public static FunctionDescriptor wgpuRenderPipelineReference$descriptor() {
        return wgpuRenderPipelineReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline)
     * }
     */
    public static MethodHandle wgpuRenderPipelineReference$handle() {
        return wgpuRenderPipelineReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline)
     * }
     */
    public static MemorySegment wgpuRenderPipelineReference$address() {
        return wgpuRenderPipelineReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline)
     * }
     */
    public static void wgpuRenderPipelineReference(MemorySegment renderPipeline) {
        var mh$ = wgpuRenderPipelineReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPipelineReference", renderPipeline);
            }
            mh$.invokeExact(renderPipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPipelineRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPipelineRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
     * }
     */
    public static FunctionDescriptor wgpuRenderPipelineRelease$descriptor() {
        return wgpuRenderPipelineRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
     * }
     */
    public static MethodHandle wgpuRenderPipelineRelease$handle() {
        return wgpuRenderPipelineRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
     * }
     */
    public static MemorySegment wgpuRenderPipelineRelease$address() {
        return wgpuRenderPipelineRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
     * }
     */
    public static void wgpuRenderPipelineRelease(MemorySegment renderPipeline) {
        var mh$ = wgpuRenderPipelineRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPipelineRelease", renderPipeline);
            }
            mh$.invokeExact(renderPipeline);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSamplerSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSamplerSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSamplerSetLabel(WGPUSampler sampler, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuSamplerSetLabel$descriptor() {
        return wgpuSamplerSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSamplerSetLabel(WGPUSampler sampler, const char *label)
     * }
     */
    public static MethodHandle wgpuSamplerSetLabel$handle() {
        return wgpuSamplerSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSamplerSetLabel(WGPUSampler sampler, const char *label)
     * }
     */
    public static MemorySegment wgpuSamplerSetLabel$address() {
        return wgpuSamplerSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSamplerSetLabel(WGPUSampler sampler, const char *label)
     * }
     */
    public static void wgpuSamplerSetLabel(MemorySegment sampler, MemorySegment label) {
        var mh$ = wgpuSamplerSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSamplerSetLabel", sampler, label);
            }
            mh$.invokeExact(sampler, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSamplerReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSamplerReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSamplerReference(WGPUSampler sampler)
     * }
     */
    public static FunctionDescriptor wgpuSamplerReference$descriptor() {
        return wgpuSamplerReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSamplerReference(WGPUSampler sampler)
     * }
     */
    public static MethodHandle wgpuSamplerReference$handle() {
        return wgpuSamplerReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSamplerReference(WGPUSampler sampler)
     * }
     */
    public static MemorySegment wgpuSamplerReference$address() {
        return wgpuSamplerReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSamplerReference(WGPUSampler sampler)
     * }
     */
    public static void wgpuSamplerReference(MemorySegment sampler) {
        var mh$ = wgpuSamplerReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSamplerReference", sampler);
            }
            mh$.invokeExact(sampler);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSamplerRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSamplerRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSamplerRelease(WGPUSampler sampler)
     * }
     */
    public static FunctionDescriptor wgpuSamplerRelease$descriptor() {
        return wgpuSamplerRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSamplerRelease(WGPUSampler sampler)
     * }
     */
    public static MethodHandle wgpuSamplerRelease$handle() {
        return wgpuSamplerRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSamplerRelease(WGPUSampler sampler)
     * }
     */
    public static MemorySegment wgpuSamplerRelease$address() {
        return wgpuSamplerRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSamplerRelease(WGPUSampler sampler)
     * }
     */
    public static void wgpuSamplerRelease(MemorySegment sampler) {
        var mh$ = wgpuSamplerRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSamplerRelease", sampler);
            }
            mh$.invokeExact(sampler);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuShaderModuleGetCompilationInfo {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuShaderModuleGetCompilationInfo");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuShaderModuleGetCompilationInfo$descriptor() {
        return wgpuShaderModuleGetCompilationInfo.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuShaderModuleGetCompilationInfo$handle() {
        return wgpuShaderModuleGetCompilationInfo.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuShaderModuleGetCompilationInfo$address() {
        return wgpuShaderModuleGetCompilationInfo.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata)
     * }
     */
    public static void wgpuShaderModuleGetCompilationInfo(MemorySegment shaderModule, MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuShaderModuleGetCompilationInfo.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuShaderModuleGetCompilationInfo", shaderModule, callback, userdata);
            }
            mh$.invokeExact(shaderModule, callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuShaderModuleSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuShaderModuleSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuShaderModuleSetLabel$descriptor() {
        return wgpuShaderModuleSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, const char *label)
     * }
     */
    public static MethodHandle wgpuShaderModuleSetLabel$handle() {
        return wgpuShaderModuleSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, const char *label)
     * }
     */
    public static MemorySegment wgpuShaderModuleSetLabel$address() {
        return wgpuShaderModuleSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, const char *label)
     * }
     */
    public static void wgpuShaderModuleSetLabel(MemorySegment shaderModule, MemorySegment label) {
        var mh$ = wgpuShaderModuleSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuShaderModuleSetLabel", shaderModule, label);
            }
            mh$.invokeExact(shaderModule, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuShaderModuleReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuShaderModuleReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuShaderModuleReference(WGPUShaderModule shaderModule)
     * }
     */
    public static FunctionDescriptor wgpuShaderModuleReference$descriptor() {
        return wgpuShaderModuleReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuShaderModuleReference(WGPUShaderModule shaderModule)
     * }
     */
    public static MethodHandle wgpuShaderModuleReference$handle() {
        return wgpuShaderModuleReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuShaderModuleReference(WGPUShaderModule shaderModule)
     * }
     */
    public static MemorySegment wgpuShaderModuleReference$address() {
        return wgpuShaderModuleReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuShaderModuleReference(WGPUShaderModule shaderModule)
     * }
     */
    public static void wgpuShaderModuleReference(MemorySegment shaderModule) {
        var mh$ = wgpuShaderModuleReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuShaderModuleReference", shaderModule);
            }
            mh$.invokeExact(shaderModule);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuShaderModuleRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuShaderModuleRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
     * }
     */
    public static FunctionDescriptor wgpuShaderModuleRelease$descriptor() {
        return wgpuShaderModuleRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
     * }
     */
    public static MethodHandle wgpuShaderModuleRelease$handle() {
        return wgpuShaderModuleRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
     * }
     */
    public static MemorySegment wgpuShaderModuleRelease$address() {
        return wgpuShaderModuleRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
     * }
     */
    public static void wgpuShaderModuleRelease(MemorySegment shaderModule) {
        var mh$ = wgpuShaderModuleRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuShaderModuleRelease", shaderModule);
            }
            mh$.invokeExact(shaderModule);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceConfigure {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceConfigure");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceConfigure(WGPUSurface surface, const WGPUSurfaceConfiguration *config)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceConfigure$descriptor() {
        return wgpuSurfaceConfigure.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceConfigure(WGPUSurface surface, const WGPUSurfaceConfiguration *config)
     * }
     */
    public static MethodHandle wgpuSurfaceConfigure$handle() {
        return wgpuSurfaceConfigure.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceConfigure(WGPUSurface surface, const WGPUSurfaceConfiguration *config)
     * }
     */
    public static MemorySegment wgpuSurfaceConfigure$address() {
        return wgpuSurfaceConfigure.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceConfigure(WGPUSurface surface, const WGPUSurfaceConfiguration *config)
     * }
     */
    public static void wgpuSurfaceConfigure(MemorySegment surface, MemorySegment config) {
        var mh$ = wgpuSurfaceConfigure.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceConfigure", surface, config);
            }
            mh$.invokeExact(surface, config);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceGetCapabilities {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceGetCapabilities");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceGetCapabilities$descriptor() {
        return wgpuSurfaceGetCapabilities.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
     * }
     */
    public static MethodHandle wgpuSurfaceGetCapabilities$handle() {
        return wgpuSurfaceGetCapabilities.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
     * }
     */
    public static MemorySegment wgpuSurfaceGetCapabilities$address() {
        return wgpuSurfaceGetCapabilities.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
     * }
     */
    public static void wgpuSurfaceGetCapabilities(MemorySegment surface, MemorySegment adapter, MemorySegment capabilities) {
        var mh$ = wgpuSurfaceGetCapabilities.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceGetCapabilities", surface, adapter, capabilities);
            }
            mh$.invokeExact(surface, adapter, capabilities);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceGetCurrentTexture {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceGetCurrentTexture");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceGetCurrentTexture$descriptor() {
        return wgpuSurfaceGetCurrentTexture.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
     * }
     */
    public static MethodHandle wgpuSurfaceGetCurrentTexture$handle() {
        return wgpuSurfaceGetCurrentTexture.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
     * }
     */
    public static MemorySegment wgpuSurfaceGetCurrentTexture$address() {
        return wgpuSurfaceGetCurrentTexture.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
     * }
     */
    public static void wgpuSurfaceGetCurrentTexture(MemorySegment surface, MemorySegment surfaceTexture) {
        var mh$ = wgpuSurfaceGetCurrentTexture.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceGetCurrentTexture", surface, surfaceTexture);
            }
            mh$.invokeExact(surface, surfaceTexture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceGetPreferredFormat {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceGetPreferredFormat");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceGetPreferredFormat$descriptor() {
        return wgpuSurfaceGetPreferredFormat.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter)
     * }
     */
    public static MethodHandle wgpuSurfaceGetPreferredFormat$handle() {
        return wgpuSurfaceGetPreferredFormat.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter)
     * }
     */
    public static MemorySegment wgpuSurfaceGetPreferredFormat$address() {
        return wgpuSurfaceGetPreferredFormat.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter)
     * }
     */
    public static int wgpuSurfaceGetPreferredFormat(MemorySegment surface, MemorySegment adapter) {
        var mh$ = wgpuSurfaceGetPreferredFormat.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceGetPreferredFormat", surface, adapter);
            }
            return (int)mh$.invokeExact(surface, adapter);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfacePresent {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfacePresent");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfacePresent(WGPUSurface surface)
     * }
     */
    public static FunctionDescriptor wgpuSurfacePresent$descriptor() {
        return wgpuSurfacePresent.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfacePresent(WGPUSurface surface)
     * }
     */
    public static MethodHandle wgpuSurfacePresent$handle() {
        return wgpuSurfacePresent.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfacePresent(WGPUSurface surface)
     * }
     */
    public static MemorySegment wgpuSurfacePresent$address() {
        return wgpuSurfacePresent.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfacePresent(WGPUSurface surface)
     * }
     */
    public static void wgpuSurfacePresent(MemorySegment surface) {
        var mh$ = wgpuSurfacePresent.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfacePresent", surface);
            }
            mh$.invokeExact(surface);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceUnconfigure {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceUnconfigure");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceUnconfigure(WGPUSurface surface)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceUnconfigure$descriptor() {
        return wgpuSurfaceUnconfigure.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceUnconfigure(WGPUSurface surface)
     * }
     */
    public static MethodHandle wgpuSurfaceUnconfigure$handle() {
        return wgpuSurfaceUnconfigure.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceUnconfigure(WGPUSurface surface)
     * }
     */
    public static MemorySegment wgpuSurfaceUnconfigure$address() {
        return wgpuSurfaceUnconfigure.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceUnconfigure(WGPUSurface surface)
     * }
     */
    public static void wgpuSurfaceUnconfigure(MemorySegment surface) {
        var mh$ = wgpuSurfaceUnconfigure.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceUnconfigure", surface);
            }
            mh$.invokeExact(surface);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceReference(WGPUSurface surface)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceReference$descriptor() {
        return wgpuSurfaceReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceReference(WGPUSurface surface)
     * }
     */
    public static MethodHandle wgpuSurfaceReference$handle() {
        return wgpuSurfaceReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceReference(WGPUSurface surface)
     * }
     */
    public static MemorySegment wgpuSurfaceReference$address() {
        return wgpuSurfaceReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceReference(WGPUSurface surface)
     * }
     */
    public static void wgpuSurfaceReference(MemorySegment surface) {
        var mh$ = wgpuSurfaceReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceReference", surface);
            }
            mh$.invokeExact(surface);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceRelease(WGPUSurface surface)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceRelease$descriptor() {
        return wgpuSurfaceRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceRelease(WGPUSurface surface)
     * }
     */
    public static MethodHandle wgpuSurfaceRelease$handle() {
        return wgpuSurfaceRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceRelease(WGPUSurface surface)
     * }
     */
    public static MemorySegment wgpuSurfaceRelease$address() {
        return wgpuSurfaceRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceRelease(WGPUSurface surface)
     * }
     */
    public static void wgpuSurfaceRelease(MemorySegment surface) {
        var mh$ = wgpuSurfaceRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceRelease", surface);
            }
            mh$.invokeExact(surface);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSurfaceCapabilitiesFreeMembers {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPUSurfaceCapabilities.layout()
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSurfaceCapabilitiesFreeMembers");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities capabilities)
     * }
     */
    public static FunctionDescriptor wgpuSurfaceCapabilitiesFreeMembers$descriptor() {
        return wgpuSurfaceCapabilitiesFreeMembers.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities capabilities)
     * }
     */
    public static MethodHandle wgpuSurfaceCapabilitiesFreeMembers$handle() {
        return wgpuSurfaceCapabilitiesFreeMembers.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities capabilities)
     * }
     */
    public static MemorySegment wgpuSurfaceCapabilitiesFreeMembers$address() {
        return wgpuSurfaceCapabilitiesFreeMembers.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities capabilities)
     * }
     */
    public static void wgpuSurfaceCapabilitiesFreeMembers(MemorySegment capabilities) {
        var mh$ = wgpuSurfaceCapabilitiesFreeMembers.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSurfaceCapabilitiesFreeMembers", capabilities);
            }
            mh$.invokeExact(capabilities);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureCreateView {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureCreateView");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, const WGPUTextureViewDescriptor *descriptor)
     * }
     */
    public static FunctionDescriptor wgpuTextureCreateView$descriptor() {
        return wgpuTextureCreateView.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, const WGPUTextureViewDescriptor *descriptor)
     * }
     */
    public static MethodHandle wgpuTextureCreateView$handle() {
        return wgpuTextureCreateView.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, const WGPUTextureViewDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuTextureCreateView$address() {
        return wgpuTextureCreateView.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, const WGPUTextureViewDescriptor *descriptor)
     * }
     */
    public static MemorySegment wgpuTextureCreateView(MemorySegment texture, MemorySegment descriptor) {
        var mh$ = wgpuTextureCreateView.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureCreateView", texture, descriptor);
            }
            return (MemorySegment)mh$.invokeExact(texture, descriptor);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureDestroy {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureDestroy");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureDestroy(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureDestroy$descriptor() {
        return wgpuTextureDestroy.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureDestroy(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureDestroy$handle() {
        return wgpuTextureDestroy.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureDestroy(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureDestroy$address() {
        return wgpuTextureDestroy.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureDestroy(WGPUTexture texture)
     * }
     */
    public static void wgpuTextureDestroy(MemorySegment texture) {
        var mh$ = wgpuTextureDestroy.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureDestroy", texture);
            }
            mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetDepthOrArrayLayers {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetDepthOrArrayLayers");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetDepthOrArrayLayers$descriptor() {
        return wgpuTextureGetDepthOrArrayLayers.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetDepthOrArrayLayers$handle() {
        return wgpuTextureGetDepthOrArrayLayers.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetDepthOrArrayLayers$address() {
        return wgpuTextureGetDepthOrArrayLayers.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetDepthOrArrayLayers(MemorySegment texture) {
        var mh$ = wgpuTextureGetDepthOrArrayLayers.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetDepthOrArrayLayers", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetDimension {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetDimension");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetDimension$descriptor() {
        return wgpuTextureGetDimension.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetDimension$handle() {
        return wgpuTextureGetDimension.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetDimension$address() {
        return wgpuTextureGetDimension.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetDimension(MemorySegment texture) {
        var mh$ = wgpuTextureGetDimension.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetDimension", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetFormat {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetFormat");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetFormat$descriptor() {
        return wgpuTextureGetFormat.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetFormat$handle() {
        return wgpuTextureGetFormat.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetFormat$address() {
        return wgpuTextureGetFormat.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetFormat(MemorySegment texture) {
        var mh$ = wgpuTextureGetFormat.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetFormat", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetHeight {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetHeight");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetHeight(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetHeight$descriptor() {
        return wgpuTextureGetHeight.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetHeight(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetHeight$handle() {
        return wgpuTextureGetHeight.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetHeight(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetHeight$address() {
        return wgpuTextureGetHeight.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetHeight(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetHeight(MemorySegment texture) {
        var mh$ = wgpuTextureGetHeight.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetHeight", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetMipLevelCount {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetMipLevelCount");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetMipLevelCount$descriptor() {
        return wgpuTextureGetMipLevelCount.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetMipLevelCount$handle() {
        return wgpuTextureGetMipLevelCount.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetMipLevelCount$address() {
        return wgpuTextureGetMipLevelCount.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetMipLevelCount(MemorySegment texture) {
        var mh$ = wgpuTextureGetMipLevelCount.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetMipLevelCount", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetSampleCount {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetSampleCount");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetSampleCount$descriptor() {
        return wgpuTextureGetSampleCount.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetSampleCount$handle() {
        return wgpuTextureGetSampleCount.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetSampleCount$address() {
        return wgpuTextureGetSampleCount.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetSampleCount(MemorySegment texture) {
        var mh$ = wgpuTextureGetSampleCount.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetSampleCount", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetUsage {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetUsage");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetUsage$descriptor() {
        return wgpuTextureGetUsage.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetUsage$handle() {
        return wgpuTextureGetUsage.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetUsage$address() {
        return wgpuTextureGetUsage.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetUsage(MemorySegment texture) {
        var mh$ = wgpuTextureGetUsage.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetUsage", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureGetWidth {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureGetWidth");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetWidth(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureGetWidth$descriptor() {
        return wgpuTextureGetWidth.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetWidth(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureGetWidth$handle() {
        return wgpuTextureGetWidth.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetWidth(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureGetWidth$address() {
        return wgpuTextureGetWidth.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuTextureGetWidth(WGPUTexture texture)
     * }
     */
    public static int wgpuTextureGetWidth(MemorySegment texture) {
        var mh$ = wgpuTextureGetWidth.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureGetWidth", texture);
            }
            return (int)mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureSetLabel(WGPUTexture texture, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuTextureSetLabel$descriptor() {
        return wgpuTextureSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureSetLabel(WGPUTexture texture, const char *label)
     * }
     */
    public static MethodHandle wgpuTextureSetLabel$handle() {
        return wgpuTextureSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureSetLabel(WGPUTexture texture, const char *label)
     * }
     */
    public static MemorySegment wgpuTextureSetLabel$address() {
        return wgpuTextureSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureSetLabel(WGPUTexture texture, const char *label)
     * }
     */
    public static void wgpuTextureSetLabel(MemorySegment texture, MemorySegment label) {
        var mh$ = wgpuTextureSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureSetLabel", texture, label);
            }
            mh$.invokeExact(texture, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureReference(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureReference$descriptor() {
        return wgpuTextureReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureReference(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureReference$handle() {
        return wgpuTextureReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureReference(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureReference$address() {
        return wgpuTextureReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureReference(WGPUTexture texture)
     * }
     */
    public static void wgpuTextureReference(MemorySegment texture) {
        var mh$ = wgpuTextureReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureReference", texture);
            }
            mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureRelease(WGPUTexture texture)
     * }
     */
    public static FunctionDescriptor wgpuTextureRelease$descriptor() {
        return wgpuTextureRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureRelease(WGPUTexture texture)
     * }
     */
    public static MethodHandle wgpuTextureRelease$handle() {
        return wgpuTextureRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureRelease(WGPUTexture texture)
     * }
     */
    public static MemorySegment wgpuTextureRelease$address() {
        return wgpuTextureRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureRelease(WGPUTexture texture)
     * }
     */
    public static void wgpuTextureRelease(MemorySegment texture) {
        var mh$ = wgpuTextureRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureRelease", texture);
            }
            mh$.invokeExact(texture);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureViewSetLabel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureViewSetLabel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureViewSetLabel(WGPUTextureView textureView, const char *label)
     * }
     */
    public static FunctionDescriptor wgpuTextureViewSetLabel$descriptor() {
        return wgpuTextureViewSetLabel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureViewSetLabel(WGPUTextureView textureView, const char *label)
     * }
     */
    public static MethodHandle wgpuTextureViewSetLabel$handle() {
        return wgpuTextureViewSetLabel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureViewSetLabel(WGPUTextureView textureView, const char *label)
     * }
     */
    public static MemorySegment wgpuTextureViewSetLabel$address() {
        return wgpuTextureViewSetLabel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureViewSetLabel(WGPUTextureView textureView, const char *label)
     * }
     */
    public static void wgpuTextureViewSetLabel(MemorySegment textureView, MemorySegment label) {
        var mh$ = wgpuTextureViewSetLabel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureViewSetLabel", textureView, label);
            }
            mh$.invokeExact(textureView, label);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureViewReference {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureViewReference");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureViewReference(WGPUTextureView textureView)
     * }
     */
    public static FunctionDescriptor wgpuTextureViewReference$descriptor() {
        return wgpuTextureViewReference.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureViewReference(WGPUTextureView textureView)
     * }
     */
    public static MethodHandle wgpuTextureViewReference$handle() {
        return wgpuTextureViewReference.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureViewReference(WGPUTextureView textureView)
     * }
     */
    public static MemorySegment wgpuTextureViewReference$address() {
        return wgpuTextureViewReference.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureViewReference(WGPUTextureView textureView)
     * }
     */
    public static void wgpuTextureViewReference(MemorySegment textureView) {
        var mh$ = wgpuTextureViewReference.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureViewReference", textureView);
            }
            mh$.invokeExact(textureView);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuTextureViewRelease {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuTextureViewRelease");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuTextureViewRelease(WGPUTextureView textureView)
     * }
     */
    public static FunctionDescriptor wgpuTextureViewRelease$descriptor() {
        return wgpuTextureViewRelease.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuTextureViewRelease(WGPUTextureView textureView)
     * }
     */
    public static MethodHandle wgpuTextureViewRelease$handle() {
        return wgpuTextureViewRelease.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuTextureViewRelease(WGPUTextureView textureView)
     * }
     */
    public static MemorySegment wgpuTextureViewRelease$address() {
        return wgpuTextureViewRelease.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuTextureViewRelease(WGPUTextureView textureView)
     * }
     */
    public static void wgpuTextureViewRelease(MemorySegment textureView) {
        var mh$ = wgpuTextureViewRelease.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuTextureViewRelease", textureView);
            }
            mh$.invokeExact(textureView);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }
    private static final int WGPUSType_DeviceExtras = (int)196609L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_DeviceExtras = 196609
     * }
     */
    public static int WGPUSType_DeviceExtras() {
        return WGPUSType_DeviceExtras;
    }
    private static final int WGPUSType_RequiredLimitsExtras = (int)196610L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_RequiredLimitsExtras = 196610
     * }
     */
    public static int WGPUSType_RequiredLimitsExtras() {
        return WGPUSType_RequiredLimitsExtras;
    }
    private static final int WGPUSType_PipelineLayoutExtras = (int)196611L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_PipelineLayoutExtras = 196611
     * }
     */
    public static int WGPUSType_PipelineLayoutExtras() {
        return WGPUSType_PipelineLayoutExtras;
    }
    private static final int WGPUSType_ShaderModuleGLSLDescriptor = (int)196612L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_ShaderModuleGLSLDescriptor = 196612
     * }
     */
    public static int WGPUSType_ShaderModuleGLSLDescriptor() {
        return WGPUSType_ShaderModuleGLSLDescriptor;
    }
    private static final int WGPUSType_SupportedLimitsExtras = (int)196613L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_SupportedLimitsExtras = 196613
     * }
     */
    public static int WGPUSType_SupportedLimitsExtras() {
        return WGPUSType_SupportedLimitsExtras;
    }
    private static final int WGPUSType_InstanceExtras = (int)196614L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_InstanceExtras = 196614
     * }
     */
    public static int WGPUSType_InstanceExtras() {
        return WGPUSType_InstanceExtras;
    }
    private static final int WGPUSType_BindGroupEntryExtras = (int)196615L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_BindGroupEntryExtras = 196615
     * }
     */
    public static int WGPUSType_BindGroupEntryExtras() {
        return WGPUSType_BindGroupEntryExtras;
    }
    private static final int WGPUSType_BindGroupLayoutEntryExtras = (int)196616L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_BindGroupLayoutEntryExtras = 196616
     * }
     */
    public static int WGPUSType_BindGroupLayoutEntryExtras() {
        return WGPUSType_BindGroupLayoutEntryExtras;
    }
    private static final int WGPUSType_QuerySetDescriptorExtras = (int)196617L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_QuerySetDescriptorExtras = 196617
     * }
     */
    public static int WGPUSType_QuerySetDescriptorExtras() {
        return WGPUSType_QuerySetDescriptorExtras;
    }
    private static final int WGPUSType_SurfaceConfigurationExtras = (int)196618L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUSType_SurfaceConfigurationExtras = 196618
     * }
     */
    public static int WGPUSType_SurfaceConfigurationExtras() {
        return WGPUSType_SurfaceConfigurationExtras;
    }
    private static final int WGPUNativeSType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeSType.WGPUNativeSType_Force32 = 2147483647
     * }
     */
    public static int WGPUNativeSType_Force32() {
        return WGPUNativeSType_Force32;
    }
    private static final int WGPUNativeFeature_PushConstants = (int)196609L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_PushConstants = 196609
     * }
     */
    public static int WGPUNativeFeature_PushConstants() {
        return WGPUNativeFeature_PushConstants;
    }
    private static final int WGPUNativeFeature_TextureAdapterSpecificFormatFeatures = (int)196610L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_TextureAdapterSpecificFormatFeatures = 196610
     * }
     */
    public static int WGPUNativeFeature_TextureAdapterSpecificFormatFeatures() {
        return WGPUNativeFeature_TextureAdapterSpecificFormatFeatures;
    }
    private static final int WGPUNativeFeature_MultiDrawIndirect = (int)196611L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_MultiDrawIndirect = 196611
     * }
     */
    public static int WGPUNativeFeature_MultiDrawIndirect() {
        return WGPUNativeFeature_MultiDrawIndirect;
    }
    private static final int WGPUNativeFeature_MultiDrawIndirectCount = (int)196612L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_MultiDrawIndirectCount = 196612
     * }
     */
    public static int WGPUNativeFeature_MultiDrawIndirectCount() {
        return WGPUNativeFeature_MultiDrawIndirectCount;
    }
    private static final int WGPUNativeFeature_VertexWritableStorage = (int)196613L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_VertexWritableStorage = 196613
     * }
     */
    public static int WGPUNativeFeature_VertexWritableStorage() {
        return WGPUNativeFeature_VertexWritableStorage;
    }
    private static final int WGPUNativeFeature_TextureBindingArray = (int)196614L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_TextureBindingArray = 196614
     * }
     */
    public static int WGPUNativeFeature_TextureBindingArray() {
        return WGPUNativeFeature_TextureBindingArray;
    }
    private static final int WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing = (int)196615L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing = 196615
     * }
     */
    public static int WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing() {
        return WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing;
    }
    private static final int WGPUNativeFeature_PipelineStatisticsQuery = (int)196616L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_PipelineStatisticsQuery = 196616
     * }
     */
    public static int WGPUNativeFeature_PipelineStatisticsQuery() {
        return WGPUNativeFeature_PipelineStatisticsQuery;
    }
    private static final int WGPUNativeFeature_StorageResourceBindingArray = (int)196617L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_StorageResourceBindingArray = 196617
     * }
     */
    public static int WGPUNativeFeature_StorageResourceBindingArray() {
        return WGPUNativeFeature_StorageResourceBindingArray;
    }
    private static final int WGPUNativeFeature_PartiallyBoundBindingArray = (int)196618L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_PartiallyBoundBindingArray = 196618
     * }
     */
    public static int WGPUNativeFeature_PartiallyBoundBindingArray() {
        return WGPUNativeFeature_PartiallyBoundBindingArray;
    }
    private static final int WGPUNativeFeature_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeFeature.WGPUNativeFeature_Force32 = 2147483647
     * }
     */
    public static int WGPUNativeFeature_Force32() {
        return WGPUNativeFeature_Force32;
    }
    private static final int WGPULogLevel_Off = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Off = 0
     * }
     */
    public static int WGPULogLevel_Off() {
        return WGPULogLevel_Off;
    }
    private static final int WGPULogLevel_Error = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Error = 1
     * }
     */
    public static int WGPULogLevel_Error() {
        return WGPULogLevel_Error;
    }
    private static final int WGPULogLevel_Warn = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Warn = 2
     * }
     */
    public static int WGPULogLevel_Warn() {
        return WGPULogLevel_Warn;
    }
    private static final int WGPULogLevel_Info = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Info = 3
     * }
     */
    public static int WGPULogLevel_Info() {
        return WGPULogLevel_Info;
    }
    private static final int WGPULogLevel_Debug = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Debug = 4
     * }
     */
    public static int WGPULogLevel_Debug() {
        return WGPULogLevel_Debug;
    }
    private static final int WGPULogLevel_Trace = (int)5L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Trace = 5
     * }
     */
    public static int WGPULogLevel_Trace() {
        return WGPULogLevel_Trace;
    }
    private static final int WGPULogLevel_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPULogLevel.WGPULogLevel_Force32 = 2147483647
     * }
     */
    public static int WGPULogLevel_Force32() {
        return WGPULogLevel_Force32;
    }
    private static final int WGPUInstanceBackend_All = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_All = 0
     * }
     */
    public static int WGPUInstanceBackend_All() {
        return WGPUInstanceBackend_All;
    }
    private static final int WGPUInstanceBackend_Vulkan = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_Vulkan = 1
     * }
     */
    public static int WGPUInstanceBackend_Vulkan() {
        return WGPUInstanceBackend_Vulkan;
    }
    private static final int WGPUInstanceBackend_GL = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_GL = 2
     * }
     */
    public static int WGPUInstanceBackend_GL() {
        return WGPUInstanceBackend_GL;
    }
    private static final int WGPUInstanceBackend_Metal = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_Metal = 4
     * }
     */
    public static int WGPUInstanceBackend_Metal() {
        return WGPUInstanceBackend_Metal;
    }
    private static final int WGPUInstanceBackend_DX12 = (int)8L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_DX12 = 8
     * }
     */
    public static int WGPUInstanceBackend_DX12() {
        return WGPUInstanceBackend_DX12;
    }
    private static final int WGPUInstanceBackend_DX11 = (int)16L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_DX11 = 16
     * }
     */
    public static int WGPUInstanceBackend_DX11() {
        return WGPUInstanceBackend_DX11;
    }
    private static final int WGPUInstanceBackend_BrowserWebGPU = (int)32L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_BrowserWebGPU = 32
     * }
     */
    public static int WGPUInstanceBackend_BrowserWebGPU() {
        return WGPUInstanceBackend_BrowserWebGPU;
    }
    private static final int WGPUInstanceBackend_Primary = (int)45L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_Primary = 45
     * }
     */
    public static int WGPUInstanceBackend_Primary() {
        return WGPUInstanceBackend_Primary;
    }
    private static final int WGPUInstanceBackend_Secondary = (int)18L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_Secondary = 18
     * }
     */
    public static int WGPUInstanceBackend_Secondary() {
        return WGPUInstanceBackend_Secondary;
    }
    private static final int WGPUInstanceBackend_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceBackend.WGPUInstanceBackend_Force32 = 2147483647
     * }
     */
    public static int WGPUInstanceBackend_Force32() {
        return WGPUInstanceBackend_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUInstanceBackendFlags
     * }
     */
    public static final OfInt WGPUInstanceBackendFlags = WGPU.C_INT;
    private static final int WGPUInstanceFlag_Default = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceFlag.WGPUInstanceFlag_Default = 0
     * }
     */
    public static int WGPUInstanceFlag_Default() {
        return WGPUInstanceFlag_Default;
    }
    private static final int WGPUInstanceFlag_Debug = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceFlag.WGPUInstanceFlag_Debug = 1
     * }
     */
    public static int WGPUInstanceFlag_Debug() {
        return WGPUInstanceFlag_Debug;
    }
    private static final int WGPUInstanceFlag_Validation = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceFlag.WGPUInstanceFlag_Validation = 2
     * }
     */
    public static int WGPUInstanceFlag_Validation() {
        return WGPUInstanceFlag_Validation;
    }
    private static final int WGPUInstanceFlag_DiscardHalLabels = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceFlag.WGPUInstanceFlag_DiscardHalLabels = 4
     * }
     */
    public static int WGPUInstanceFlag_DiscardHalLabels() {
        return WGPUInstanceFlag_DiscardHalLabels;
    }
    private static final int WGPUInstanceFlag_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUInstanceFlag.WGPUInstanceFlag_Force32 = 2147483647
     * }
     */
    public static int WGPUInstanceFlag_Force32() {
        return WGPUInstanceFlag_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef WGPUFlags WGPUInstanceFlags
     * }
     */
    public static final OfInt WGPUInstanceFlags = WGPU.C_INT;
    private static final int WGPUDx12Compiler_Undefined = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUDx12Compiler.WGPUDx12Compiler_Undefined = 0
     * }
     */
    public static int WGPUDx12Compiler_Undefined() {
        return WGPUDx12Compiler_Undefined;
    }
    private static final int WGPUDx12Compiler_Fxc = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUDx12Compiler.WGPUDx12Compiler_Fxc = 1
     * }
     */
    public static int WGPUDx12Compiler_Fxc() {
        return WGPUDx12Compiler_Fxc;
    }
    private static final int WGPUDx12Compiler_Dxc = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUDx12Compiler.WGPUDx12Compiler_Dxc = 2
     * }
     */
    public static int WGPUDx12Compiler_Dxc() {
        return WGPUDx12Compiler_Dxc;
    }
    private static final int WGPUDx12Compiler_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUDx12Compiler.WGPUDx12Compiler_Force32 = 2147483647
     * }
     */
    public static int WGPUDx12Compiler_Force32() {
        return WGPUDx12Compiler_Force32;
    }
    private static final int WGPUGles3MinorVersion_Automatic = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUGles3MinorVersion.WGPUGles3MinorVersion_Automatic = 0
     * }
     */
    public static int WGPUGles3MinorVersion_Automatic() {
        return WGPUGles3MinorVersion_Automatic;
    }
    private static final int WGPUGles3MinorVersion_Version0 = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUGles3MinorVersion.WGPUGles3MinorVersion_Version0 = 1
     * }
     */
    public static int WGPUGles3MinorVersion_Version0() {
        return WGPUGles3MinorVersion_Version0;
    }
    private static final int WGPUGles3MinorVersion_Version1 = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUGles3MinorVersion.WGPUGles3MinorVersion_Version1 = 2
     * }
     */
    public static int WGPUGles3MinorVersion_Version1() {
        return WGPUGles3MinorVersion_Version1;
    }
    private static final int WGPUGles3MinorVersion_Version2 = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUGles3MinorVersion.WGPUGles3MinorVersion_Version2 = 3
     * }
     */
    public static int WGPUGles3MinorVersion_Version2() {
        return WGPUGles3MinorVersion_Version2;
    }
    private static final int WGPUGles3MinorVersion_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUGles3MinorVersion.WGPUGles3MinorVersion_Force32 = 2147483647
     * }
     */
    public static int WGPUGles3MinorVersion_Force32() {
        return WGPUGles3MinorVersion_Force32;
    }
    private static final int WGPUPipelineStatisticName_VertexShaderInvocations = (int)0L;
    /**
     * {@snippet lang=c :
     * enum WGPUPipelineStatisticName.WGPUPipelineStatisticName_VertexShaderInvocations = 0
     * }
     */
    public static int WGPUPipelineStatisticName_VertexShaderInvocations() {
        return WGPUPipelineStatisticName_VertexShaderInvocations;
    }
    private static final int WGPUPipelineStatisticName_ClipperInvocations = (int)1L;
    /**
     * {@snippet lang=c :
     * enum WGPUPipelineStatisticName.WGPUPipelineStatisticName_ClipperInvocations = 1
     * }
     */
    public static int WGPUPipelineStatisticName_ClipperInvocations() {
        return WGPUPipelineStatisticName_ClipperInvocations;
    }
    private static final int WGPUPipelineStatisticName_ClipperPrimitivesOut = (int)2L;
    /**
     * {@snippet lang=c :
     * enum WGPUPipelineStatisticName.WGPUPipelineStatisticName_ClipperPrimitivesOut = 2
     * }
     */
    public static int WGPUPipelineStatisticName_ClipperPrimitivesOut() {
        return WGPUPipelineStatisticName_ClipperPrimitivesOut;
    }
    private static final int WGPUPipelineStatisticName_FragmentShaderInvocations = (int)3L;
    /**
     * {@snippet lang=c :
     * enum WGPUPipelineStatisticName.WGPUPipelineStatisticName_FragmentShaderInvocations = 3
     * }
     */
    public static int WGPUPipelineStatisticName_FragmentShaderInvocations() {
        return WGPUPipelineStatisticName_FragmentShaderInvocations;
    }
    private static final int WGPUPipelineStatisticName_ComputeShaderInvocations = (int)4L;
    /**
     * {@snippet lang=c :
     * enum WGPUPipelineStatisticName.WGPUPipelineStatisticName_ComputeShaderInvocations = 4
     * }
     */
    public static int WGPUPipelineStatisticName_ComputeShaderInvocations() {
        return WGPUPipelineStatisticName_ComputeShaderInvocations;
    }
    private static final int WGPUPipelineStatisticName_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUPipelineStatisticName.WGPUPipelineStatisticName_Force32 = 2147483647
     * }
     */
    public static int WGPUPipelineStatisticName_Force32() {
        return WGPUPipelineStatisticName_Force32;
    }
    private static final int WGPUNativeQueryType_PipelineStatistics = (int)196608L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeQueryType.WGPUNativeQueryType_PipelineStatistics = 196608
     * }
     */
    public static int WGPUNativeQueryType_PipelineStatistics() {
        return WGPUNativeQueryType_PipelineStatistics;
    }
    private static final int WGPUNativeQueryType_Force32 = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * enum WGPUNativeQueryType.WGPUNativeQueryType_Force32 = 2147483647
     * }
     */
    public static int WGPUNativeQueryType_Force32() {
        return WGPUNativeQueryType_Force32;
    }
    /**
     * {@snippet lang=c :
     * typedef uint64_t WGPUSubmissionIndex
     * }
     */
    public static final OfLong WGPUSubmissionIndex = WGPU.C_LONG_LONG;

    private static class wgpuGenerateReport {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuGenerateReport");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuGenerateReport(WGPUInstance instance, WGPUGlobalReport *report)
     * }
     */
    public static FunctionDescriptor wgpuGenerateReport$descriptor() {
        return wgpuGenerateReport.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuGenerateReport(WGPUInstance instance, WGPUGlobalReport *report)
     * }
     */
    public static MethodHandle wgpuGenerateReport$handle() {
        return wgpuGenerateReport.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuGenerateReport(WGPUInstance instance, WGPUGlobalReport *report)
     * }
     */
    public static MemorySegment wgpuGenerateReport$address() {
        return wgpuGenerateReport.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuGenerateReport(WGPUInstance instance, WGPUGlobalReport *report)
     * }
     */
    public static void wgpuGenerateReport(MemorySegment instance, MemorySegment report) {
        var mh$ = wgpuGenerateReport.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuGenerateReport", instance, report);
            }
            mh$.invokeExact(instance, report);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuInstanceEnumerateAdapters {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuInstanceEnumerateAdapters");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * size_t wgpuInstanceEnumerateAdapters(WGPUInstance instance, const WGPUInstanceEnumerateAdapterOptions *options, WGPUAdapter *adapters)
     * }
     */
    public static FunctionDescriptor wgpuInstanceEnumerateAdapters$descriptor() {
        return wgpuInstanceEnumerateAdapters.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * size_t wgpuInstanceEnumerateAdapters(WGPUInstance instance, const WGPUInstanceEnumerateAdapterOptions *options, WGPUAdapter *adapters)
     * }
     */
    public static MethodHandle wgpuInstanceEnumerateAdapters$handle() {
        return wgpuInstanceEnumerateAdapters.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * size_t wgpuInstanceEnumerateAdapters(WGPUInstance instance, const WGPUInstanceEnumerateAdapterOptions *options, WGPUAdapter *adapters)
     * }
     */
    public static MemorySegment wgpuInstanceEnumerateAdapters$address() {
        return wgpuInstanceEnumerateAdapters.ADDR;
    }

    /**
     * {@snippet lang=c :
     * size_t wgpuInstanceEnumerateAdapters(WGPUInstance instance, const WGPUInstanceEnumerateAdapterOptions *options, WGPUAdapter *adapters)
     * }
     */
    public static long wgpuInstanceEnumerateAdapters(MemorySegment instance, MemorySegment options, MemorySegment adapters) {
        var mh$ = wgpuInstanceEnumerateAdapters.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuInstanceEnumerateAdapters", instance, options, adapters);
            }
            return (long)mh$.invokeExact(instance, options, adapters);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuQueueSubmitForIndex {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuQueueSubmitForIndex");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUSubmissionIndex wgpuQueueSubmitForIndex(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static FunctionDescriptor wgpuQueueSubmitForIndex$descriptor() {
        return wgpuQueueSubmitForIndex.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUSubmissionIndex wgpuQueueSubmitForIndex(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static MethodHandle wgpuQueueSubmitForIndex$handle() {
        return wgpuQueueSubmitForIndex.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUSubmissionIndex wgpuQueueSubmitForIndex(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static MemorySegment wgpuQueueSubmitForIndex$address() {
        return wgpuQueueSubmitForIndex.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUSubmissionIndex wgpuQueueSubmitForIndex(WGPUQueue queue, size_t commandCount, const WGPUCommandBuffer *commands)
     * }
     */
    public static long wgpuQueueSubmitForIndex(MemorySegment queue, long commandCount, MemorySegment commands) {
        var mh$ = wgpuQueueSubmitForIndex.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuQueueSubmitForIndex", queue, commandCount, commands);
            }
            return (long)mh$.invokeExact(queue, commandCount, commands);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuDevicePoll {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT,
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuDevicePoll");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * WGPUBool wgpuDevicePoll(WGPUDevice device, WGPUBool wait, const WGPUWrappedSubmissionIndex *wrappedSubmissionIndex)
     * }
     */
    public static FunctionDescriptor wgpuDevicePoll$descriptor() {
        return wgpuDevicePoll.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * WGPUBool wgpuDevicePoll(WGPUDevice device, WGPUBool wait, const WGPUWrappedSubmissionIndex *wrappedSubmissionIndex)
     * }
     */
    public static MethodHandle wgpuDevicePoll$handle() {
        return wgpuDevicePoll.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * WGPUBool wgpuDevicePoll(WGPUDevice device, WGPUBool wait, const WGPUWrappedSubmissionIndex *wrappedSubmissionIndex)
     * }
     */
    public static MemorySegment wgpuDevicePoll$address() {
        return wgpuDevicePoll.ADDR;
    }

    /**
     * {@snippet lang=c :
     * WGPUBool wgpuDevicePoll(WGPUDevice device, WGPUBool wait, const WGPUWrappedSubmissionIndex *wrappedSubmissionIndex)
     * }
     */
    public static int wgpuDevicePoll(MemorySegment device, int wait, MemorySegment wrappedSubmissionIndex) {
        var mh$ = wgpuDevicePoll.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuDevicePoll", device, wait, wrappedSubmissionIndex);
            }
            return (int)mh$.invokeExact(device, wait, wrappedSubmissionIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSetLogCallback {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSetLogCallback");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSetLogCallback(WGPULogCallback callback, void *userdata)
     * }
     */
    public static FunctionDescriptor wgpuSetLogCallback$descriptor() {
        return wgpuSetLogCallback.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSetLogCallback(WGPULogCallback callback, void *userdata)
     * }
     */
    public static MethodHandle wgpuSetLogCallback$handle() {
        return wgpuSetLogCallback.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSetLogCallback(WGPULogCallback callback, void *userdata)
     * }
     */
    public static MemorySegment wgpuSetLogCallback$address() {
        return wgpuSetLogCallback.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSetLogCallback(WGPULogCallback callback, void *userdata)
     * }
     */
    public static void wgpuSetLogCallback(MemorySegment callback, MemorySegment userdata) {
        var mh$ = wgpuSetLogCallback.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSetLogCallback", callback, userdata);
            }
            mh$.invokeExact(callback, userdata);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuSetLogLevel {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuSetLogLevel");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuSetLogLevel(WGPULogLevel level)
     * }
     */
    public static FunctionDescriptor wgpuSetLogLevel$descriptor() {
        return wgpuSetLogLevel.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuSetLogLevel(WGPULogLevel level)
     * }
     */
    public static MethodHandle wgpuSetLogLevel$handle() {
        return wgpuSetLogLevel.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuSetLogLevel(WGPULogLevel level)
     * }
     */
    public static MemorySegment wgpuSetLogLevel$address() {
        return wgpuSetLogLevel.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuSetLogLevel(WGPULogLevel level)
     * }
     */
    public static void wgpuSetLogLevel(int level) {
        var mh$ = wgpuSetLogLevel.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuSetLogLevel", level);
            }
            mh$.invokeExact(level);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuGetVersion {
        public static final FunctionDescriptor DESC = FunctionDescriptor.of(
            WGPU.C_INT    );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuGetVersion");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * uint32_t wgpuGetVersion()
     * }
     */
    public static FunctionDescriptor wgpuGetVersion$descriptor() {
        return wgpuGetVersion.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * uint32_t wgpuGetVersion()
     * }
     */
    public static MethodHandle wgpuGetVersion$handle() {
        return wgpuGetVersion.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * uint32_t wgpuGetVersion()
     * }
     */
    public static MemorySegment wgpuGetVersion$address() {
        return wgpuGetVersion.ADDR;
    }

    /**
     * {@snippet lang=c :
     * uint32_t wgpuGetVersion()
     * }
     */
    public static int wgpuGetVersion() {
        var mh$ = wgpuGetVersion.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuGetVersion");
            }
            return (int)mh$.invokeExact();
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderSetPushConstants {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_INT,
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderSetPushConstants");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPushConstants(WGPURenderPassEncoder encoder, WGPUShaderStageFlags stages, uint32_t offset, uint32_t sizeBytes, const void *data)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderSetPushConstants$descriptor() {
        return wgpuRenderPassEncoderSetPushConstants.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPushConstants(WGPURenderPassEncoder encoder, WGPUShaderStageFlags stages, uint32_t offset, uint32_t sizeBytes, const void *data)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderSetPushConstants$handle() {
        return wgpuRenderPassEncoderSetPushConstants.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPushConstants(WGPURenderPassEncoder encoder, WGPUShaderStageFlags stages, uint32_t offset, uint32_t sizeBytes, const void *data)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderSetPushConstants$address() {
        return wgpuRenderPassEncoderSetPushConstants.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderSetPushConstants(WGPURenderPassEncoder encoder, WGPUShaderStageFlags stages, uint32_t offset, uint32_t sizeBytes, const void *data)
     * }
     */
    public static void wgpuRenderPassEncoderSetPushConstants(MemorySegment encoder, int stages, int offset, int sizeBytes, MemorySegment data) {
        var mh$ = wgpuRenderPassEncoderSetPushConstants.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderSetPushConstants", encoder, stages, offset, sizeBytes, data);
            }
            mh$.invokeExact(encoder, stages, offset, sizeBytes, data);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderMultiDrawIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderMultiDrawIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderMultiDrawIndirect$descriptor() {
        return wgpuRenderPassEncoderMultiDrawIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderMultiDrawIndirect$handle() {
        return wgpuRenderPassEncoderMultiDrawIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderMultiDrawIndirect$address() {
        return wgpuRenderPassEncoderMultiDrawIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static void wgpuRenderPassEncoderMultiDrawIndirect(MemorySegment encoder, MemorySegment buffer, long offset, int count) {
        var mh$ = wgpuRenderPassEncoderMultiDrawIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderMultiDrawIndirect", encoder, buffer, offset, count);
            }
            mh$.invokeExact(encoder, buffer, offset, count);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderMultiDrawIndexedIndirect {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderMultiDrawIndexedIndirect");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderMultiDrawIndexedIndirect$descriptor() {
        return wgpuRenderPassEncoderMultiDrawIndexedIndirect.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderMultiDrawIndexedIndirect$handle() {
        return wgpuRenderPassEncoderMultiDrawIndexedIndirect.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderMultiDrawIndexedIndirect$address() {
        return wgpuRenderPassEncoderMultiDrawIndexedIndirect.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirect(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, uint32_t count)
     * }
     */
    public static void wgpuRenderPassEncoderMultiDrawIndexedIndirect(MemorySegment encoder, MemorySegment buffer, long offset, int count) {
        var mh$ = wgpuRenderPassEncoderMultiDrawIndexedIndirect.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderMultiDrawIndexedIndirect", encoder, buffer, offset, count);
            }
            mh$.invokeExact(encoder, buffer, offset, count);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderMultiDrawIndirectCount {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderMultiDrawIndirectCount");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderMultiDrawIndirectCount$descriptor() {
        return wgpuRenderPassEncoderMultiDrawIndirectCount.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderMultiDrawIndirectCount$handle() {
        return wgpuRenderPassEncoderMultiDrawIndirectCount.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderMultiDrawIndirectCount$address() {
        return wgpuRenderPassEncoderMultiDrawIndirectCount.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static void wgpuRenderPassEncoderMultiDrawIndirectCount(MemorySegment encoder, MemorySegment buffer, long offset, MemorySegment count_buffer, long count_buffer_offset, int max_count) {
        var mh$ = wgpuRenderPassEncoderMultiDrawIndirectCount.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderMultiDrawIndirectCount", encoder, buffer, offset, count_buffer, count_buffer_offset, max_count);
            }
            mh$.invokeExact(encoder, buffer, offset, count_buffer, count_buffer_offset, max_count);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderMultiDrawIndexedIndirectCount {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_POINTER,
            WGPU.C_LONG_LONG,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderMultiDrawIndexedIndirectCount");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderMultiDrawIndexedIndirectCount$descriptor() {
        return wgpuRenderPassEncoderMultiDrawIndexedIndirectCount.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderMultiDrawIndexedIndirectCount$handle() {
        return wgpuRenderPassEncoderMultiDrawIndexedIndirectCount.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderMultiDrawIndexedIndirectCount$address() {
        return wgpuRenderPassEncoderMultiDrawIndexedIndirectCount.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderMultiDrawIndexedIndirectCount(WGPURenderPassEncoder encoder, WGPUBuffer buffer, uint64_t offset, WGPUBuffer count_buffer, uint64_t count_buffer_offset, uint32_t max_count)
     * }
     */
    public static void wgpuRenderPassEncoderMultiDrawIndexedIndirectCount(MemorySegment encoder, MemorySegment buffer, long offset, MemorySegment count_buffer, long count_buffer_offset, int max_count) {
        var mh$ = wgpuRenderPassEncoderMultiDrawIndexedIndirectCount.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderMultiDrawIndexedIndirectCount", encoder, buffer, offset, count_buffer, count_buffer_offset, max_count);
            }
            mh$.invokeExact(encoder, buffer, offset, count_buffer, count_buffer_offset, max_count);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderBeginPipelineStatisticsQuery {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderBeginPipelineStatisticsQuery");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderBeginPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderBeginPipelineStatisticsQuery$descriptor() {
        return wgpuComputePassEncoderBeginPipelineStatisticsQuery.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderBeginPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderBeginPipelineStatisticsQuery$handle() {
        return wgpuComputePassEncoderBeginPipelineStatisticsQuery.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderBeginPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderBeginPipelineStatisticsQuery$address() {
        return wgpuComputePassEncoderBeginPipelineStatisticsQuery.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderBeginPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static void wgpuComputePassEncoderBeginPipelineStatisticsQuery(MemorySegment computePassEncoder, MemorySegment querySet, int queryIndex) {
        var mh$ = wgpuComputePassEncoderBeginPipelineStatisticsQuery.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderBeginPipelineStatisticsQuery", computePassEncoder, querySet, queryIndex);
            }
            mh$.invokeExact(computePassEncoder, querySet, queryIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuComputePassEncoderEndPipelineStatisticsQuery {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuComputePassEncoderEndPipelineStatisticsQuery");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEndPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuComputePassEncoderEndPipelineStatisticsQuery$descriptor() {
        return wgpuComputePassEncoderEndPipelineStatisticsQuery.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEndPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MethodHandle wgpuComputePassEncoderEndPipelineStatisticsQuery$handle() {
        return wgpuComputePassEncoderEndPipelineStatisticsQuery.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEndPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static MemorySegment wgpuComputePassEncoderEndPipelineStatisticsQuery$address() {
        return wgpuComputePassEncoderEndPipelineStatisticsQuery.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuComputePassEncoderEndPipelineStatisticsQuery(WGPUComputePassEncoder computePassEncoder)
     * }
     */
    public static void wgpuComputePassEncoderEndPipelineStatisticsQuery(MemorySegment computePassEncoder) {
        var mh$ = wgpuComputePassEncoderEndPipelineStatisticsQuery.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuComputePassEncoderEndPipelineStatisticsQuery", computePassEncoder);
            }
            mh$.invokeExact(computePassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderBeginPipelineStatisticsQuery {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER,
            WGPU.C_POINTER,
            WGPU.C_INT
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderBeginPipelineStatisticsQuery");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderBeginPipelineStatisticsQuery$descriptor() {
        return wgpuRenderPassEncoderBeginPipelineStatisticsQuery.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderBeginPipelineStatisticsQuery$handle() {
        return wgpuRenderPassEncoderBeginPipelineStatisticsQuery.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderBeginPipelineStatisticsQuery$address() {
        return wgpuRenderPassEncoderBeginPipelineStatisticsQuery.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderBeginPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
     * }
     */
    public static void wgpuRenderPassEncoderBeginPipelineStatisticsQuery(MemorySegment renderPassEncoder, MemorySegment querySet, int queryIndex) {
        var mh$ = wgpuRenderPassEncoderBeginPipelineStatisticsQuery.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderBeginPipelineStatisticsQuery", renderPassEncoder, querySet, queryIndex);
            }
            mh$.invokeExact(renderPassEncoder, querySet, queryIndex);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }

    private static class wgpuRenderPassEncoderEndPipelineStatisticsQuery {
        public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
            WGPU.C_POINTER
        );

        public static final MemorySegment ADDR = WGPU.findOrThrow("wgpuRenderPassEncoderEndPipelineStatisticsQuery");

        public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
    }

    /**
     * Function descriptor for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static FunctionDescriptor wgpuRenderPassEncoderEndPipelineStatisticsQuery$descriptor() {
        return wgpuRenderPassEncoderEndPipelineStatisticsQuery.DESC;
    }

    /**
     * Downcall method handle for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MethodHandle wgpuRenderPassEncoderEndPipelineStatisticsQuery$handle() {
        return wgpuRenderPassEncoderEndPipelineStatisticsQuery.HANDLE;
    }

    /**
     * Address for:
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static MemorySegment wgpuRenderPassEncoderEndPipelineStatisticsQuery$address() {
        return wgpuRenderPassEncoderEndPipelineStatisticsQuery.ADDR;
    }

    /**
     * {@snippet lang=c :
     * void wgpuRenderPassEncoderEndPipelineStatisticsQuery(WGPURenderPassEncoder renderPassEncoder)
     * }
     */
    public static void wgpuRenderPassEncoderEndPipelineStatisticsQuery(MemorySegment renderPassEncoder) {
        var mh$ = wgpuRenderPassEncoderEndPipelineStatisticsQuery.HANDLE;
        try {
            if (TRACE_DOWNCALLS) {
                traceDowncall("wgpuRenderPassEncoderEndPipelineStatisticsQuery", renderPassEncoder);
            }
            mh$.invokeExact(renderPassEncoder);
        } catch (Throwable ex$) {
           throw new AssertionError("should not reach here", ex$);
        }
    }
    private static final int _VCRUNTIME_DISABLED_WARNINGS = (int)4514L;
    /**
     * {@snippet lang=c :
     * #define _VCRUNTIME_DISABLED_WARNINGS 4514
     * }
     */
    public static int _VCRUNTIME_DISABLED_WARNINGS() {
        return _VCRUNTIME_DISABLED_WARNINGS;
    }
    private static final MemorySegment NULL = MemorySegment.ofAddress(0L);
    /**
     * {@snippet lang=c :
     * #define NULL (void*) 0
     * }
     */
    public static MemorySegment NULL() {
        return NULL;
    }
    private static final int INT8_MIN = (int)-128L;
    /**
     * {@snippet lang=c :
     * #define INT8_MIN -128
     * }
     */
    public static int INT8_MIN() {
        return INT8_MIN;
    }
    private static final int INT16_MIN = (int)-32768L;
    /**
     * {@snippet lang=c :
     * #define INT16_MIN -32768
     * }
     */
    public static int INT16_MIN() {
        return INT16_MIN;
    }
    private static final int INT32_MIN = (int)-2147483648L;
    /**
     * {@snippet lang=c :
     * #define INT32_MIN -2147483648
     * }
     */
    public static int INT32_MIN() {
        return INT32_MIN;
    }
    private static final long INT64_MIN = -9223372036854775808L;
    /**
     * {@snippet lang=c :
     * #define INT64_MIN -9223372036854775808
     * }
     */
    public static long INT64_MIN() {
        return INT64_MIN;
    }
    private static final byte INT8_MAX = (byte)127L;
    /**
     * {@snippet lang=c :
     * #define INT8_MAX 127
     * }
     */
    public static byte INT8_MAX() {
        return INT8_MAX;
    }
    private static final short INT16_MAX = (short)32767L;
    /**
     * {@snippet lang=c :
     * #define INT16_MAX 32767
     * }
     */
    public static short INT16_MAX() {
        return INT16_MAX;
    }
    private static final int INT32_MAX = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * #define INT32_MAX 2147483647
     * }
     */
    public static int INT32_MAX() {
        return INT32_MAX;
    }
    private static final long INT64_MAX = 9223372036854775807L;
    /**
     * {@snippet lang=c :
     * #define INT64_MAX 9223372036854775807
     * }
     */
    public static long INT64_MAX() {
        return INT64_MAX;
    }
    private static final byte UINT8_MAX = (byte)255L;
    /**
     * {@snippet lang=c :
     * #define UINT8_MAX 255
     * }
     */
    public static byte UINT8_MAX() {
        return UINT8_MAX;
    }
    private static final short UINT16_MAX = (short)65535L;
    /**
     * {@snippet lang=c :
     * #define UINT16_MAX 65535
     * }
     */
    public static short UINT16_MAX() {
        return UINT16_MAX;
    }
    private static final int UINT32_MAX = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define UINT32_MAX 4294967295
     * }
     */
    public static int UINT32_MAX() {
        return UINT32_MAX;
    }
    private static final long UINT64_MAX = -1L;
    /**
     * {@snippet lang=c :
     * #define UINT64_MAX -1
     * }
     */
    public static long UINT64_MAX() {
        return UINT64_MAX;
    }
    private static final int INT_LEAST8_MIN = (int)-128L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST8_MIN -128
     * }
     */
    public static int INT_LEAST8_MIN() {
        return INT_LEAST8_MIN;
    }
    private static final int INT_LEAST16_MIN = (int)-32768L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST16_MIN -32768
     * }
     */
    public static int INT_LEAST16_MIN() {
        return INT_LEAST16_MIN;
    }
    private static final int INT_LEAST32_MIN = (int)-2147483648L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST32_MIN -2147483648
     * }
     */
    public static int INT_LEAST32_MIN() {
        return INT_LEAST32_MIN;
    }
    private static final long INT_LEAST64_MIN = -9223372036854775808L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST64_MIN -9223372036854775808
     * }
     */
    public static long INT_LEAST64_MIN() {
        return INT_LEAST64_MIN;
    }
    private static final byte INT_LEAST8_MAX = (byte)127L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST8_MAX 127
     * }
     */
    public static byte INT_LEAST8_MAX() {
        return INT_LEAST8_MAX;
    }
    private static final short INT_LEAST16_MAX = (short)32767L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST16_MAX 32767
     * }
     */
    public static short INT_LEAST16_MAX() {
        return INT_LEAST16_MAX;
    }
    private static final int INT_LEAST32_MAX = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST32_MAX 2147483647
     * }
     */
    public static int INT_LEAST32_MAX() {
        return INT_LEAST32_MAX;
    }
    private static final long INT_LEAST64_MAX = 9223372036854775807L;
    /**
     * {@snippet lang=c :
     * #define INT_LEAST64_MAX 9223372036854775807
     * }
     */
    public static long INT_LEAST64_MAX() {
        return INT_LEAST64_MAX;
    }
    private static final byte UINT_LEAST8_MAX = (byte)255L;
    /**
     * {@snippet lang=c :
     * #define UINT_LEAST8_MAX 255
     * }
     */
    public static byte UINT_LEAST8_MAX() {
        return UINT_LEAST8_MAX;
    }
    private static final short UINT_LEAST16_MAX = (short)65535L;
    /**
     * {@snippet lang=c :
     * #define UINT_LEAST16_MAX 65535
     * }
     */
    public static short UINT_LEAST16_MAX() {
        return UINT_LEAST16_MAX;
    }
    private static final int UINT_LEAST32_MAX = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define UINT_LEAST32_MAX 4294967295
     * }
     */
    public static int UINT_LEAST32_MAX() {
        return UINT_LEAST32_MAX;
    }
    private static final long UINT_LEAST64_MAX = -1L;
    /**
     * {@snippet lang=c :
     * #define UINT_LEAST64_MAX -1
     * }
     */
    public static long UINT_LEAST64_MAX() {
        return UINT_LEAST64_MAX;
    }
    private static final int INT_FAST8_MIN = (int)-128L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST8_MIN -128
     * }
     */
    public static int INT_FAST8_MIN() {
        return INT_FAST8_MIN;
    }
    private static final int INT_FAST16_MIN = (int)-2147483648L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST16_MIN -2147483648
     * }
     */
    public static int INT_FAST16_MIN() {
        return INT_FAST16_MIN;
    }
    private static final int INT_FAST32_MIN = (int)-2147483648L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST32_MIN -2147483648
     * }
     */
    public static int INT_FAST32_MIN() {
        return INT_FAST32_MIN;
    }
    private static final long INT_FAST64_MIN = -9223372036854775808L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST64_MIN -9223372036854775808
     * }
     */
    public static long INT_FAST64_MIN() {
        return INT_FAST64_MIN;
    }
    private static final byte INT_FAST8_MAX = (byte)127L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST8_MAX 127
     * }
     */
    public static byte INT_FAST8_MAX() {
        return INT_FAST8_MAX;
    }
    private static final int INT_FAST16_MAX = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST16_MAX 2147483647
     * }
     */
    public static int INT_FAST16_MAX() {
        return INT_FAST16_MAX;
    }
    private static final int INT_FAST32_MAX = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST32_MAX 2147483647
     * }
     */
    public static int INT_FAST32_MAX() {
        return INT_FAST32_MAX;
    }
    private static final long INT_FAST64_MAX = 9223372036854775807L;
    /**
     * {@snippet lang=c :
     * #define INT_FAST64_MAX 9223372036854775807
     * }
     */
    public static long INT_FAST64_MAX() {
        return INT_FAST64_MAX;
    }
    private static final byte UINT_FAST8_MAX = (byte)255L;
    /**
     * {@snippet lang=c :
     * #define UINT_FAST8_MAX 255
     * }
     */
    public static byte UINT_FAST8_MAX() {
        return UINT_FAST8_MAX;
    }
    private static final int UINT_FAST16_MAX = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define UINT_FAST16_MAX 4294967295
     * }
     */
    public static int UINT_FAST16_MAX() {
        return UINT_FAST16_MAX;
    }
    private static final int UINT_FAST32_MAX = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define UINT_FAST32_MAX 4294967295
     * }
     */
    public static int UINT_FAST32_MAX() {
        return UINT_FAST32_MAX;
    }
    private static final long UINT_FAST64_MAX = -1L;
    /**
     * {@snippet lang=c :
     * #define UINT_FAST64_MAX -1
     * }
     */
    public static long UINT_FAST64_MAX() {
        return UINT_FAST64_MAX;
    }
    private static final long INTPTR_MIN = -9223372036854775808L;
    /**
     * {@snippet lang=c :
     * #define INTPTR_MIN -9223372036854775808
     * }
     */
    public static long INTPTR_MIN() {
        return INTPTR_MIN;
    }
    private static final long INTPTR_MAX = 9223372036854775807L;
    /**
     * {@snippet lang=c :
     * #define INTPTR_MAX 9223372036854775807
     * }
     */
    public static long INTPTR_MAX() {
        return INTPTR_MAX;
    }
    private static final long UINTPTR_MAX = -1L;
    /**
     * {@snippet lang=c :
     * #define UINTPTR_MAX -1
     * }
     */
    public static long UINTPTR_MAX() {
        return UINTPTR_MAX;
    }
    private static final long INTMAX_MIN = -9223372036854775808L;
    /**
     * {@snippet lang=c :
     * #define INTMAX_MIN -9223372036854775808
     * }
     */
    public static long INTMAX_MIN() {
        return INTMAX_MIN;
    }
    private static final long INTMAX_MAX = 9223372036854775807L;
    /**
     * {@snippet lang=c :
     * #define INTMAX_MAX 9223372036854775807
     * }
     */
    public static long INTMAX_MAX() {
        return INTMAX_MAX;
    }
    private static final long UINTMAX_MAX = -1L;
    /**
     * {@snippet lang=c :
     * #define UINTMAX_MAX -1
     * }
     */
    public static long UINTMAX_MAX() {
        return UINTMAX_MAX;
    }
    private static final long PTRDIFF_MIN = -9223372036854775808L;
    /**
     * {@snippet lang=c :
     * #define PTRDIFF_MIN -9223372036854775808
     * }
     */
    public static long PTRDIFF_MIN() {
        return PTRDIFF_MIN;
    }
    private static final long PTRDIFF_MAX = 9223372036854775807L;
    /**
     * {@snippet lang=c :
     * #define PTRDIFF_MAX 9223372036854775807
     * }
     */
    public static long PTRDIFF_MAX() {
        return PTRDIFF_MAX;
    }
    private static final long SIZE_MAX = -1L;
    /**
     * {@snippet lang=c :
     * #define SIZE_MAX -1
     * }
     */
    public static long SIZE_MAX() {
        return SIZE_MAX;
    }
    private static final int SIG_ATOMIC_MIN = (int)-2147483648L;
    /**
     * {@snippet lang=c :
     * #define SIG_ATOMIC_MIN -2147483648
     * }
     */
    public static int SIG_ATOMIC_MIN() {
        return SIG_ATOMIC_MIN;
    }
    private static final int SIG_ATOMIC_MAX = (int)2147483647L;
    /**
     * {@snippet lang=c :
     * #define SIG_ATOMIC_MAX 2147483647
     * }
     */
    public static int SIG_ATOMIC_MAX() {
        return SIG_ATOMIC_MAX;
    }
    private static final int WGPU_ARRAY_LAYER_COUNT_UNDEFINED = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define WGPU_ARRAY_LAYER_COUNT_UNDEFINED 4294967295
     * }
     */
    public static int WGPU_ARRAY_LAYER_COUNT_UNDEFINED() {
        return WGPU_ARRAY_LAYER_COUNT_UNDEFINED;
    }
    private static final int WGPU_COPY_STRIDE_UNDEFINED = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define WGPU_COPY_STRIDE_UNDEFINED 4294967295
     * }
     */
    public static int WGPU_COPY_STRIDE_UNDEFINED() {
        return WGPU_COPY_STRIDE_UNDEFINED;
    }
    private static final int WGPU_LIMIT_U32_UNDEFINED = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define WGPU_LIMIT_U32_UNDEFINED 4294967295
     * }
     */
    public static int WGPU_LIMIT_U32_UNDEFINED() {
        return WGPU_LIMIT_U32_UNDEFINED;
    }
    private static final long WGPU_LIMIT_U64_UNDEFINED = -1L;
    /**
     * {@snippet lang=c :
     * #define WGPU_LIMIT_U64_UNDEFINED -1
     * }
     */
    public static long WGPU_LIMIT_U64_UNDEFINED() {
        return WGPU_LIMIT_U64_UNDEFINED;
    }
    private static final int WGPU_MIP_LEVEL_COUNT_UNDEFINED = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define WGPU_MIP_LEVEL_COUNT_UNDEFINED 4294967295
     * }
     */
    public static int WGPU_MIP_LEVEL_COUNT_UNDEFINED() {
        return WGPU_MIP_LEVEL_COUNT_UNDEFINED;
    }
    private static final int WGPU_QUERY_SET_INDEX_UNDEFINED = (int)4294967295L;
    /**
     * {@snippet lang=c :
     * #define WGPU_QUERY_SET_INDEX_UNDEFINED 4294967295
     * }
     */
    public static int WGPU_QUERY_SET_INDEX_UNDEFINED() {
        return WGPU_QUERY_SET_INDEX_UNDEFINED;
    }
    private static final long WGPU_WHOLE_MAP_SIZE = -1L;
    /**
     * {@snippet lang=c :
     * #define WGPU_WHOLE_MAP_SIZE -1
     * }
     */
    public static long WGPU_WHOLE_MAP_SIZE() {
        return WGPU_WHOLE_MAP_SIZE;
    }
    private static final long WGPU_WHOLE_SIZE = -1L;
    /**
     * {@snippet lang=c :
     * #define WGPU_WHOLE_SIZE -1
     * }
     */
    public static long WGPU_WHOLE_SIZE() {
        return WGPU_WHOLE_SIZE;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy