webgpu_gpu.h 386 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <iron_gpu.h>
  3. #include <iron_math.h>
  4. #include <webgpu/webgpu.h>
  5. typedef struct {
  6. WGPUBuffer buffer;
  7. int stride;
  8. } gpu_buffer_impl_t;
  9. typedef struct {
  10. WGPUTexture texture;
  11. } gpu_texture_impl_t;
  12. typedef struct {
  13. WGPURenderPipeline pipeline;
  14. } gpu_pipeline_impl_t;
  15. struct WGPUShaderModuleImpl;
  16. typedef struct {
  17. WGPUShaderModule module;
  18. } gpu_shader_impl_t;