Files
armorpaint/base/sources/backends/webgpu_gpu.h
T
2025-03-12 22:27:08 +01:00

50 lines
787 B
C

#pragma once
#include <iron_gpu.h>
#include <iron_math.h>
#include <webgpu/webgpu.h>
typedef struct {
WGPUBuffer buffer;
int count;
int stride;
} VertexBuffer5Impl;
typedef struct {
WGPUBuffer buffer;
} ConstantBuffer5Impl;
typedef struct {
WGPUBuffer buffer;
int count;
} IndexBuffer5Impl;
typedef struct {
WGPUTexture texture;
} Texture5Impl;
typedef struct {
WGPURenderPipeline pipeline;
} PipelineState5Impl;
typedef struct {
int vertexOffset;
int fragmentOffset;
} ConstantLocation5Impl;
typedef struct iron_gpu_sampler_impl {
int a;
} iron_gpu_sampler_impl_t;
struct WGPUShaderModuleImpl;
typedef struct {
WGPUShaderModule module;
} Shader5Impl;
typedef struct {
WGPUCommandEncoder encoder;
WGPURenderPassEncoder pass;
int indexCount;
} CommandList5Impl;