Files
armorpaint/base/sources/backends/webgpu_gpu.h
T

30 lines
539 B
C
Raw Normal View History

2025-02-26 18:46:36 +01:00
#pragma once
2025-11-10 18:37:27 +01:00
#include "webgpu.h"
2025-02-26 18:46:36 +01:00
typedef struct {
2025-11-10 18:37:27 +01:00
WGPUBuffer buf;
2026-01-05 21:13:49 +01:00
void *mem;
2026-01-06 11:00:19 +01:00
int start;
2025-03-18 10:39:23 +01:00
} gpu_buffer_impl_t;
2025-02-26 18:46:36 +01:00
typedef struct {
2025-11-10 18:37:27 +01:00
WGPUTexture texture;
WGPUTextureView view;
2025-03-16 19:49:13 +01:00
} gpu_texture_impl_t;
2025-02-26 18:46:36 +01:00
typedef struct {
WGPURenderPipeline pipeline;
2026-02-02 20:51:37 +01:00
WGPURenderPipeline pipeline_depth;
2025-11-10 18:37:27 +01:00
WGPUPipelineLayout pipeline_layout;
2026-02-02 20:51:37 +01:00
WGPUPipelineLayout pipeline_layout_depth;
2025-03-16 19:49:13 +01:00
} gpu_pipeline_impl_t;
2025-02-26 18:46:36 +01:00
typedef struct {
2025-11-10 18:37:27 +01:00
void *source;
size_t length;
2025-03-16 19:49:13 +01:00
} gpu_shader_impl_t;
2025-11-10 18:37:27 +01:00
typedef struct {
int empty;
2026-02-12 22:59:14 +01:00
} gpu_acceleration_structure_impl_t;