gpu: translate opaque pointer types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
32a26d8f12
commit
0ae04f1d87
25 changed files with 24 additions and 25 deletions
|
|
@ -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
1
gpu/src/Adapter.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/BindGroup.zig
Normal file
1
gpu/src/BindGroup.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/BindGroupLayout.zig
Normal file
1
gpu/src/BindGroupLayout.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Buffer.zig
Normal file
1
gpu/src/Buffer.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/CommandBuffer.zig
Normal file
1
gpu/src/CommandBuffer.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/CommandEncoder.zig
Normal file
1
gpu/src/CommandEncoder.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/ComputePassEncoder.zig
Normal file
1
gpu/src/ComputePassEncoder.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/ComputePipeline.zig
Normal file
1
gpu/src/ComputePipeline.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Device.zig
Normal file
1
gpu/src/Device.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/ExternalTexture.zig
Normal file
1
gpu/src/ExternalTexture.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Instance.zig
Normal file
1
gpu/src/Instance.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/PipelineLayout.zig
Normal file
1
gpu/src/PipelineLayout.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/QuerySet.zig
Normal file
1
gpu/src/QuerySet.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Queue.zig
Normal file
1
gpu/src/Queue.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/RenderBundle.zig
Normal file
1
gpu/src/RenderBundle.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/RenderBundleEncoder.zig
Normal file
1
gpu/src/RenderBundleEncoder.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/RenderPassEncoder.zig
Normal file
1
gpu/src/RenderPassEncoder.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/RenderPipeline.zig
Normal file
1
gpu/src/RenderPipeline.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Sampler.zig
Normal file
1
gpu/src/Sampler.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/ShaderModule.zig
Normal file
1
gpu/src/ShaderModule.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Surface.zig
Normal file
1
gpu/src/Surface.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/SwapChain.zig
Normal file
1
gpu/src/SwapChain.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/Texture.zig
Normal file
1
gpu/src/Texture.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
1
gpu/src/TextureView.zig
Normal file
1
gpu/src/TextureView.zig
Normal file
|
|
@ -0,0 +1 @@
|
|||
ptr: *anyopaque,
|
||||
Loading…
Add table
Add a link
Reference in a new issue