gpu: translate opaque pointer types

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-10 20:31:54 -07:00 committed by Stephen Gutekanst
parent 32a26d8f12
commit 0ae04f1d87
25 changed files with 24 additions and 25 deletions

View file

@ -1,30 +1,5 @@
typedef uint32_t WGPUFlags;
typedef struct WGPUAdapterImpl* WGPUAdapter;
typedef struct WGPUBindGroupImpl* WGPUBindGroup;
typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout;
typedef struct WGPUBufferImpl* WGPUBuffer;
typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer;
typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder;
typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder;
typedef struct WGPUComputePipelineImpl* WGPUComputePipeline;
typedef struct WGPUDeviceImpl* WGPUDevice;
typedef struct WGPUExternalTextureImpl* WGPUExternalTexture;
typedef struct WGPUInstanceImpl* WGPUInstance;
typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout;
typedef struct WGPUQuerySetImpl* WGPUQuerySet;
typedef struct WGPUQueueImpl* WGPUQueue;
typedef struct WGPURenderBundleImpl* WGPURenderBundle;
typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder;
typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder;
typedef struct WGPURenderPipelineImpl* WGPURenderPipeline;
typedef struct WGPUSamplerImpl* WGPUSampler;
typedef struct WGPUShaderModuleImpl* WGPUShaderModule;
typedef struct WGPUSurfaceImpl* WGPUSurface;
typedef struct WGPUSwapChainImpl* WGPUSwapChain;
typedef struct WGPUTextureImpl* WGPUTexture;
typedef struct WGPUTextureViewImpl* WGPUTextureView;
typedef enum WGPUAdapterType {
WGPUAdapterType_DiscreteGPU = 0x00000000,
WGPUAdapterType_IntegratedGPU = 0x00000001,

1
gpu/src/Adapter.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/BindGroup.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Buffer.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Device.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Instance.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/QuerySet.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Queue.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/RenderBundle.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Sampler.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/ShaderModule.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Surface.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/SwapChain.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/Texture.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,

1
gpu/src/TextureView.zig Normal file
View file

@ -0,0 +1 @@
ptr: *anyopaque,