webgpu_gpu.h 551 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "webgpu.h"
  3. typedef struct {
  4. WGPUBuffer buf;
  5. void *temp;
  6. int start;
  7. int count;
  8. } gpu_buffer_impl_t;
  9. typedef struct {
  10. WGPUTexture texture;
  11. WGPUTextureView view;
  12. } gpu_texture_impl_t;
  13. typedef struct {
  14. WGPURenderPipeline pipeline;
  15. WGPUPipelineLayout pipeline_layout;
  16. } gpu_pipeline_impl_t;
  17. typedef struct {
  18. void *source;
  19. size_t length;
  20. } gpu_shader_impl_t;
  21. typedef struct {
  22. int empty;
  23. } gpu_raytrace_pipeline_impl_t;
  24. typedef struct {
  25. int empty;
  26. } gpu_raytrace_acceleration_structure_impl_t;