metal_gpu.h 491 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. typedef struct {
  3. void *_pipeline;
  4. void *_depth;
  5. } gpu_pipeline_impl_t;
  6. typedef struct {
  7. char name[256];
  8. void *mtl_function;
  9. char *source;
  10. int length;
  11. } gpu_shader_impl_t;
  12. typedef struct {
  13. void *_tex;
  14. void *data;
  15. } gpu_texture_impl_t;
  16. typedef struct {
  17. void *metal_buffer;
  18. } gpu_buffer_impl_t;
  19. typedef struct {
  20. void *_raytracingPipeline;
  21. } gpu_raytrace_pipeline_impl_t;
  22. typedef struct {
  23. void *_accelerationStructure;
  24. } gpu_raytrace_acceleration_structure_impl_t;