gpu: update remaining TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
cc7aa3a49a
commit
cfc9708b37
3 changed files with 3 additions and 10 deletions
|
|
@ -1896,8 +1896,8 @@ const command_encoder_vtable = CommandEncoder.VTable{
|
||||||
.stencilReadOnly = v.stencil_read_only,
|
.stencilReadOnly = v.stencil_read_only,
|
||||||
} else null,
|
} else null,
|
||||||
.occlusionQuerySet = if (d.occlusion_query_set) |v| @ptrCast(c.WGPUQuerySet, v.ptr) else null,
|
.occlusionQuerySet = if (d.occlusion_query_set) |v| @ptrCast(c.WGPUQuerySet, v.ptr) else null,
|
||||||
.timestampWriteCount = 0, // TODO
|
.timestampWriteCount = 0, // TODO(implement)
|
||||||
.timestampWrites = null, // TODO
|
.timestampWrites = null, // TODO(implement)
|
||||||
};
|
};
|
||||||
return wrapRenderPassEncoder(c.wgpuCommandEncoderBeginRenderPass(@ptrCast(c.WGPUCommandEncoder, ptr), &desc));
|
return wrapRenderPassEncoder(c.wgpuCommandEncoderBeginRenderPass(@ptrCast(c.WGPUCommandEncoder, ptr), &desc));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ pub const VTable = struct {
|
||||||
// TODO: dawn specific?
|
// TODO: dawn specific?
|
||||||
// copyTextureForBrowser: fn (ptr: *anyopaque, source: *const ImageCopyTexture, destination: *const ImageCopyTexture, copy_size: *const Extent3D, options: *const CopyTextureForBrowserOptions) void,
|
// copyTextureForBrowser: fn (ptr: *anyopaque, source: *const ImageCopyTexture, destination: *const ImageCopyTexture, copy_size: *const Extent3D, options: *const CopyTextureForBrowserOptions) void,
|
||||||
submit: fn (queue: Queue, commands: []const CommandBuffer) void,
|
submit: fn (queue: Queue, commands: []const CommandBuffer) void,
|
||||||
// TODO:
|
// TODO(implement):
|
||||||
// writeBuffer: fn (ptr: *anyopaque, buffer: Buffer, buffer_offset: u64, data: *const anyopaque, size: usize);
|
// writeBuffer: fn (ptr: *anyopaque, buffer: Buffer, buffer_offset: u64, data: *const anyopaque, size: usize);
|
||||||
// writeTexture: fn (ptr: *anyopaque, destination: *const ImageCopyTexture, data: *const anyopaque, data_size: usize, data_layout: *const TextureDataLayout, write_size: *const Extent3D);
|
// writeTexture: fn (ptr: *anyopaque, destination: *const ImageCopyTexture, data: *const anyopaque, data_size: usize, data_layout: *const TextureDataLayout, write_size: *const Extent3D);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -44,13 +44,6 @@ typedef struct WGPUCopyTextureForBrowserOptions {
|
||||||
WGPUAlphaMode dstAlphaMode;
|
WGPUAlphaMode dstAlphaMode;
|
||||||
} WGPUCopyTextureForBrowserOptions;
|
} WGPUCopyTextureForBrowserOptions;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef void (*WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const * message, void * userdata);
|
|
||||||
typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata);
|
|
||||||
typedef void (*WGPULoggingCallback)(WGPULoggingType type, char const * message, void * userdata);
|
|
||||||
typedef void (*WGPUProc)();
|
|
||||||
|
|
||||||
typedef enum WGPUSType {
|
typedef enum WGPUSType {
|
||||||
// webgpu.h upstream:
|
// webgpu.h upstream:
|
||||||
WGPUSType_Invalid = 0x00000000,
|
WGPUSType_Invalid = 0x00000000,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue