Files
armorpaint/base/sources/backends/webgpu_gpu.h
T
luboslenco 29d3d6a34a Cleanup
2025-03-16 19:49:13 +01:00

50 lines
830 B
C

#pragma once
#include <iron_gpu.h>
#include <iron_math.h>
#include <webgpu/webgpu.h>
typedef struct {
WGPUBuffer buffer;
int count;
int stride;
} gpu_vertex_buffer_impl_t;
typedef struct {
WGPUBuffer buffer;
} gpu_constant_buffer_impl_t;
typedef struct {
WGPUBuffer buffer;
int count;
} gpu_index_buffer_impl_t;
typedef struct {
WGPUTexture texture;
} gpu_texture_impl_t;
typedef struct {
WGPURenderPipeline pipeline;
} gpu_pipeline_impl_t;
typedef struct {
int vertexOffset;
int fragmentOffset;
} gpu_constant_location_impl_t;
typedef struct iron_gpu_sampler_impl {
int a;
} gpu_sampler_impl_t;
struct WGPUShaderModuleImpl;
typedef struct {
WGPUShaderModule module;
} gpu_shader_impl_t;
typedef struct {
WGPUCommandEncoder encoder;
WGPURenderPassEncoder pass;
int indexCount;
} gpu_command_list_impl_t;