gpu: inline TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8453b0d2a6
commit
b0adf42c70
25 changed files with 1939 additions and 605 deletions
|
|
@ -4,7 +4,16 @@ const TextureView = @import("texture_view.zig").TextureView;
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
||||
|
||||
pub const BindGroup = *opaque {};
|
||||
pub const BindGroup = *opaque {
|
||||
// TODO
|
||||
// pub inline fn bindGroupSetLabel(bind_group: gpu.BindGroup, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bindGroupReference(bind_group: gpu.BindGroup) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bindGroupRelease(bind_group: gpu.BindGroup) void {
|
||||
};
|
||||
|
||||
pub const BindGroupEntry = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,16 @@ const Texture = @import("texture.zig").Texture;
|
|||
const TextureBindingLayout = @import("texture.zig").TextureBindingLayout;
|
||||
const StorageTextureBindingLayout = @import("types.zig").StorageTextureBindingLayout;
|
||||
|
||||
pub const BindGroupLayout = *opaque {};
|
||||
pub const BindGroupLayout = *opaque {
|
||||
// TODO
|
||||
// pub inline fn bindGroupLayoutSetLabel(bind_group_layout: gpu.BindGroupLayout, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bindGroupLayoutReference(bind_group_layout: gpu.BindGroupLayout) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bindGroupLayoutRelease(bind_group_layout: gpu.BindGroupLayout) void {
|
||||
};
|
||||
|
||||
pub const BindGroupLayoutEntry = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,37 @@
|
|||
const std = @import("std");
|
||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const Buffer = *opaque {};
|
||||
pub const Buffer = *opaque {
|
||||
// TODO
|
||||
// pub inline fn bufferDestroy(buffer: gpu.Buffer) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferGetConstMappedRange(buffer: gpu.Buffer, offset: usize, size: usize) *const anyopaque {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferGetMappedRange(buffer: gpu.Buffer, offset: usize, size: usize) *anyopaque {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferGetSize(buffer: gpu.Buffer) u64 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferGetUsage(buffer: gpu.Buffer) gpu.BufferUsage {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferMapAsync(buffer: gpu.Buffer, mode: gpu.MapModeFlags, offset: usize, size: usize, callback: BufferMapCallback, userdata: *anyopaque) u64 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferSetLabel(buffer: gpu.Buffer, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferUnmap(buffer: gpu.Buffer) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferReference(buffer: gpu.Buffer) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn bufferRelease(buffer: gpu.Buffer) void {
|
||||
};
|
||||
|
||||
pub const BufferMapCallback = fn (status: BufferMapAsyncStatus, userdata: *anyopaque) callconv(.C) void;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,15 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const CommandBuffer = *opaque {};
|
||||
pub const CommandBuffer = *opaque {
|
||||
// TODO
|
||||
// pub inline fn commandBufferSetLabel(command_buffer: gpu.CommandBuffer, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandBufferReference(command_buffer: gpu.CommandBuffer) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandBufferRelease(command_buffer: gpu.CommandBuffer) void {
|
||||
};
|
||||
|
||||
pub const CommandBufferDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,65 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const CommandEncoder = *opaque {};
|
||||
pub const CommandEncoder = *opaque {
|
||||
// TODO
|
||||
// pub inline fn commandEncoderBeginComputePass(command_encoder: gpu.CommandEncoder, descriptor: ?*const gpu.ComputePassDescriptor) gpu.ComputePassEncoder {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderBeginRenderPass(command_encoder: gpu.CommandEncoder, descriptor: *const gpu.RenderPassDescriptor) gpu.RenderPassEncoder {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderClearBuffer(command_encoder: gpu.CommandEncoder, buffer: gpu.Buffer, offset: u64, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderCopyBufferToBuffer(command_encoder: gpu.CommandEncoder, source: gpu.Buffer, source_offset: u64, destination: gpu.Buffer, destination_offset: u64, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderCopyBufferToTexture(command_encoder: gpu.CommandEncoder, source: *const gpu.ImageCopyBuffer, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderCopyTextureToBuffer(command_encoder: gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyBuffer, copy_size: *const gpu.Extent3D) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderCopyTextureToTexture(command_encoder: gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void {
|
||||
|
||||
// Note: the only difference between this and the non-internal variant is that this one checks
|
||||
// internal usage.
|
||||
// TODO
|
||||
// pub inline fn commandEncoderCopyTextureToTextureInternal(command_encoder: gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderFinish(command_encoder: gpu.CommandEncoder, descriptor: ?*const gpu.CommandBufferDescriptor) gpu.CommandBuffer {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderInjectValidationError(command_encoder: gpu.CommandEncoder, message: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderInsertDebugMarker(command_encoder: gpu.CommandEncoder, marker_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderPopDebugGroup(command_encoder: gpu.CommandEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderPushDebugGroup(command_encoder: gpu.CommandEncoder, group_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderResolveQuerySet(command_encoder: gpu.CommandEncoder, query_set: gpu.QuerySet, first_query: u32, query_count: u32, destination: gpu.Buffer, destination_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderSetLabel(command_encoder: gpu.CommandEncoder, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderWriteBuffer(command_encoder: gpu.CommandEncoder, buffer: gpu.Buffer, buffer_offset: u64, data: [*]const u8, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderWriteTimestamp(command_encoder: gpu.CommandEncoder, query_set: gpu.QuerySet, query_index: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderReference(command_encoder: gpu.CommandEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn commandEncoderRelease(command_encoder: gpu.CommandEncoder) void {
|
||||
};
|
||||
|
||||
pub const CommandEncoderDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -1 +1,46 @@
|
|||
pub const ComputePassEncoder = *opaque {};
|
||||
pub const ComputePassEncoder = *opaque {
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderDispatch(compute_pass_encoder: gpu.ComputePassEncoder, workgroup_count_x: u32, workgroup_count_y: u32, workgroup_count_z: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderDispatchIndirect(compute_pass_encoder: gpu.ComputePassEncoder, indirect_buffer: gpu.Buffer, indirect_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderDispatchWorkgroups(compute_pass_encoder: gpu.ComputePassEncoder, workgroup_count_x: u32, workgroup_count_y: u32, workgroup_count_z: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderDispatchWorkgroupsIndirect(compute_pass_encoder: gpu.ComputePassEncoder, indirect_buffer: gpu.Buffer, indirect_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderEnd(compute_pass_encoder: gpu.ComputePassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderEndPass(compute_pass_encoder: gpu.ComputePassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderInsertDebugMarker(compute_pass_encoder: gpu.ComputePassEncoder, marker_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderPopDebugGroup(compute_pass_encoder: gpu.ComputePassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderPushDebugGroup(compute_pass_encoder: gpu.ComputePassEncoder, group_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderSetBindGroup(compute_pass_encoder: gpu.ComputePassEncoder, group_index: u32, group: gpu.BindGroup, dynamic_offset_count: u32, dynamic_offsets: [*]const u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderSetLabel(compute_pass_encoder: gpu.ComputePassEncoder, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderSetPipeline(compute_pass_encoder: gpu.ComputePassEncoder, pipeline: gpu.ComputePipeline) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderWriteTimestamp(compute_pass_encoder: gpu.ComputePassEncoder, pipeline: gpu.ComputePipeline) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderReference(compute_pass_encoder: gpu.ComputePassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePassEncoderRelease(compute_pass_encoder: gpu.ComputePassEncoder) void {
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,19 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const ProgrammableStageDescriptor = @import("types.zig").ProgrammableStageDescriptor;
|
||||
const PipelineLayout = @import("pipeline_layout.zig").PipelineLayout;
|
||||
|
||||
pub const ComputePipeline = *opaque {};
|
||||
pub const ComputePipeline = *opaque {
|
||||
// TODO
|
||||
// pub inline fn computePipelineGetBindGroupLayout(compute_pipeline: gpu.ComputePipeline, group_index: u32) gpu.BindGroupLayout {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePipelineSetLabel(compute_pipeline: gpu.ComputePipeline, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePipelineReference(compute_pipeline: gpu.ComputePipeline) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn computePipelineRelease(compute_pipeline: gpu.ComputePipeline) void {
|
||||
};
|
||||
|
||||
pub const ComputePipelineDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,109 @@ const RequiredLimits = @import("types.zig").RequiredLimits;
|
|||
const Queue = @import("queue.zig").Queue;
|
||||
const QueueDescriptor = @import("queue.zig").QueueDescriptor;
|
||||
|
||||
pub const Device = *opaque {};
|
||||
pub const Device = *opaque {
|
||||
// TODO
|
||||
// pub inline fn deviceCreateBindGroup(device: gpu.Device, descriptor: *const gpu.BindGroupDescriptor) gpu.BindGroup {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateBindGroupLayout(device: gpu.Device, descriptor: *const gpu.BindGroupLayoutDescriptor) gpu.BindGroupLayout {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateBindGroup(device: gpu.Device, descriptor: *const gpu.BufferDescriptor) gpu.Buffer {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateCommandEncoder(device: gpu.Device, descriptor: ?*const gpu.CommandEncoderDescriptor) gpu.CommandEncoder {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateComputePipeline(device: gpu.Device, descriptor: *const gpu.ComputePipelineDescriptor) gpu.ComputePipeline {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateComputePipelineAsync(device: gpu.Device, descriptor: *const gpu.ComputePipelineDescriptor, callback: gpu.CreateComputePipelineAsyncCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateErrorBuffer(device: gpu.Device) gpu.Buffer {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateErrorExternalTexture(device: gpu.Device) gpu.ExternalTexture {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateExternalTexture(device: gpu.Device, external_texture_descriptor: *const gpu.ExternalTextureDescriptor) gpu.ExternalTexture {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreatePipelineLayout(device: gpu.Device, pipeline_layout_descriptor: *const gpu.PipelineLayoutDescriptor) gpu.PipelineLayout {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateQuerySet(device: gpu.Device, descriptor: *const gpu.QuerySetDescriptor) gpu.QuerySet {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateRenderBundleEncoder(device: gpu.Device, descriptor: *const gpu.RenderBundleEncoderDescriptor) gpu.RenderBundleEncoder {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateRenderPipeline(device: gpu.Device, descriptor: *const gpu.RenderPipelineDescriptor) gpu.RenderPipeline {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateRenderPipelineAsync(device: gpu.Device, descriptor: *const gpu.RenderPipelineDescriptor, callback: gpu.CreateRenderPipelineAsyncCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateRenderPipeline(device: gpu.Device, descriptor: ?*const gpu.SamplerDescriptor) gpu.Sampler {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateShaderModule(device: gpu.Device, descriptor: *const gpu.ShaderModuleDescriptor) gpu.ShaderModule {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateShaderModule(device: gpu.Device, surface: ?Surface, descriptor: *const gpu.SwapChainDescriptor) gpu.SwapChain {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceCreateTexture(device: gpu.Device, descriptor: *const gpu.TextureDescriptor) gpu.Texture {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceDestroy(device: gpu.Device) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceEnumerateFeatures(device: gpu.Device, features: [*]gpu.FeatureName) usize {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceGetLimits(device: gpu.Device, limits: *gpu.SupportedLimits) bool {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceGetQueue(device: gpu.Device) gpu.Queue {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceHasFeature(device: gpu.Device, feature: gpu.FeatureName) bool {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceInjectError(device: gpu.Device, typ: gpu.ErrorType, message: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceLoseForTesting(device: gpu.Device) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn devicePopErrorScope(device: gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) bool {
|
||||
|
||||
// TODO
|
||||
// pub inline fn devicePushErrorScope(device: gpu.Device, filter: gpu.ErrorFilter) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceSetDeviceLostCallback(device: gpu.Device, callback: gpu.DeviceLostCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceSetLabel(device: gpu.Device, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceSetLoggingCallback(device: gpu.Device, callback: gpu.LoggingCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceSetUncapturedErrorCallback(device: gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceTick(device: gpu.Device) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceReference(device: gpu.Device) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn deviceRelease(device: gpu.Device) void {
|
||||
};
|
||||
|
||||
pub const DeviceLostCallback = fn (
|
||||
reason: DeviceLostReason,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,19 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const TextureView = @import("texture_view.zig").TextureView;
|
||||
|
||||
pub const ExternalTexture = *opaque {};
|
||||
pub const ExternalTexture = *opaque {
|
||||
// TODO
|
||||
// pub inline fn externalTextureDestroy(external_texture: gpu.ExternalTexture) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn externalTextureSetLabel(external_texture: gpu.ExternalTexture, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn externalTextureReference(external_texture: gpu.ExternalTexture) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn externalTextureRelease(external_texture: gpu.ExternalTexture) void {
|
||||
};
|
||||
|
||||
pub const ExternalTextureBindingEntry = extern struct {
|
||||
chain: ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,19 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const RequestAdapterStatus = @import("types.zig").RequestAdapterStatus;
|
||||
const Adapter = @import("adapter.zig").Adapter;
|
||||
|
||||
pub const Instance = *opaque {};
|
||||
pub const Instance = *opaque {
|
||||
// TODO
|
||||
// pub inline fn instanceCreateSurface(instance: gpu.Instance, descriptor: *const gpu.SurfaceDescriptor) gpu.Surface {
|
||||
|
||||
// TODO
|
||||
// pub inline fn instanceRequestAdapter(instance: gpu.Instance, options: *const gpu.RequestAdapterOptions, callback: gpu.RequestAdapterCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn instanceReference(instance: gpu.Instance) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn instanceRelease(instance: gpu.Instance) void {
|
||||
};
|
||||
|
||||
pub const RequestAdapterCallback = fn (
|
||||
status: RequestAdapterStatus,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,16 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
||||
|
||||
pub const PipelineLayout = *opaque {};
|
||||
pub const PipelineLayout = *opaque {
|
||||
// TODO
|
||||
// pub inline fn pipelineLayoutSetLabel(pipeline_layout: gpu.PipelineLayout, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn pipelineLayoutReference(pipeline_layout: gpu.PipelineLayout) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn pipelineLayoutRelease(pipeline_layout: gpu.PipelineLayout) void {
|
||||
};
|
||||
|
||||
pub const PipelineLayoutDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,25 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const PipelineStatisticName = @import("types.zig").PipelineStatisticName;
|
||||
const QueryType = @import("types.zig").QueryType;
|
||||
|
||||
pub const QuerySet = *opaque {};
|
||||
pub const QuerySet = *opaque {
|
||||
// TODO
|
||||
// pub inline fn querySetDestroy(query_set: gpu.QuerySet) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn querySetGetCount(query_set: gpu.QuerySet) u32 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn querySetGetType(query_set: gpu.QuerySet) gpu.QueryType {
|
||||
|
||||
// TODO
|
||||
// pub inline fn querySetSetLabel(query_set: gpu.QuerySet, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn querySetReference(query_set: gpu.QuerySet) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn querySetRelease(query_set: gpu.QuerySet) void {
|
||||
};
|
||||
|
||||
pub const QuerySetDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,30 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const Queue = *opaque {};
|
||||
pub const Queue = *opaque {
|
||||
// TODO
|
||||
// pub inline fn queueCopyTextureForBrowser(queue: gpu.Queue, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D, options: *const gpu.CopyTextureForBrowserOptions) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueOnSubmittedWorkDone(queue: gpu.Queue, signal_value: u64, callback: gpu.QueueWorkDoneCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueSetLabel(queue: gpu.Queue, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueSubmit(queue: gpu.Queue, command_count: u32, commands: [*]gpu.CommandBuffer) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueWriteBuffer(queue: gpu.Queue, buffer: gpu.Buffer, buffer_offset: u64, data: *anyopaque, size: usize) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueWriteTexture(queue: gpu.Queue, data: *anyopaque, data_size: usize, data_layout: *const gpu.TextureDataLayout, write_size: *const gpu.Extent3D) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueReference(queue: gpu.Queue) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn queueRelease(queue: gpu.Queue) void {
|
||||
};
|
||||
|
||||
pub const QueueWorkDoneCallback = fn (
|
||||
status: QueueWorkDoneStatus,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const RenderBundle = *opaque {};
|
||||
pub const RenderBundle = *opaque {
|
||||
// TODO
|
||||
// pub inline fn renderBundleReference(render_bundle: gpu.RenderBundle) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleRelease(render_bundle: gpu.RenderBundle) void {
|
||||
};
|
||||
|
||||
pub const RenderBundleDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,52 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const Texture = @import("texture.zig").Texture;
|
||||
const TextureFormat = @import("texture.zig").TextureFormat;
|
||||
|
||||
pub const RenderBundleEncoder = *opaque {};
|
||||
pub const RenderBundleEncoder = *opaque {
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderDraw(render_bundle_encoder: gpu.RenderBundleEncoder, vertex_count: u32, instance_count: u32, first_vertex: u32, first_instance: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderDrawIndexed(render_bundle_encoder: gpu.RenderBundleEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: u32, first_instance: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderDrawIndexedIndirect(render_bundle_encoder: gpu.RenderBundleEncoder, indirect_buffer: gpu.Buffer, indirect_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderDrawIndirect(render_bundle_encoder: gpu.RenderBundleEncoder, indirect_buffer: gpu.Buffer, indirect_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderFinish(render_bundle_encoder: gpu.RenderBundleEncoder, descriptor: ?*const gpu.RenderBundleDescriptor) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderInsertDebugMarker(render_bundle_encoder: gpu.RenderBundleEncoder, marker_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderPopDebugGroup(render_bundle_encoder: gpu.RenderBundleEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderPushDebugGroup(render_bundle_encoder: gpu.RenderBundleEncoder, group_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderSetBindGroup(render_bundle_encoder: gpu.RenderBundleEncoder, group_index: u32, group: gpu.BindGroup, dynamic_offset_count: u32, dynamic_offsets: [*]const u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderSetIndexBuffer(render_bundle_encoder: gpu.RenderBundleEncoder, buffer: gpu.Buffer, format: gpu.IndexFormat, offset: u64, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderSetLabel(render_bundle_encoder: gpu.RenderBundleEncoder, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderSetPipeline(render_bundle_encoder: gpu.RenderBundleEncoder, pipeline: gpu.RenderPipeline) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderSetVertexBuffer(render_bundle_encoder: gpu.RenderBundleEncoder, slot: u32, buffer: gpu.Buffer, offset: u64, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderReference(render_bundle_encoder: gpu.RenderBundleEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderBundleEncoderRelease(render_bundle_encoder: gpu.RenderBundleEncoder) void {
|
||||
};
|
||||
|
||||
pub const RenderBundleEncoderDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -1 +1,73 @@
|
|||
pub const RenderPassEncoder = *opaque {};
|
||||
pub const RenderPassEncoder = *opaque {
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderBeginOcclusionQuery(render_pass_encoder: gpu.RenderPassEncoder, query_index: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderDraw(render_pass_encoder: gpu.RenderPassEncoder, vertex_count: u32, instance_count: u32, first_vertex: u32, first_instance: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderDrawIndexed(render_pass_encoder: gpu.RenderPassEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: u32, first_instance: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderDrawIndexedIndirect(render_pass_encoder: gpu.RenderPassEncoder, indirect_buffer: gpu.Buffer, indirect_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderDrawIndirect(render_pass_encoder: gpu.RenderPassEncoder, indirect_buffer: gpu.Buffer, indirect_offset: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderEnd(render_pass_encoder: gpu.RenderPassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderEndOcclusionQuery(render_pass_encoder: gpu.RenderPassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderEndPass(render_pass_encoder: gpu.RenderPassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderExecuteBundles(render_pass_encoder: gpu.RenderPassEncoder, bundles_count: u32, bundles: [*]const gpu.RenderBundle) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderInsertDebugMarker(render_pass_encoder: gpu.RenderPassEncoder, marker_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderPopDebugGroup(render_pass_encoder: gpu.RenderPassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderPushDebugGroup(render_pass_encoder: gpu.RenderPassEncoder, group_label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetBindGroup(render_pass_encoder: gpu.RenderPassEncoder, group_index: u32, group: gpu.BindGroup, dynamic_offset_count: u32, dynamic_offsets: [*]const u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetBlendConstant(render_pass_encoder: gpu.RenderPassEncoder, color: *const gpu.Color) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetIndexBuffer(render_pass_encoder: gpu.RenderPassEncoder, buffer: gpu.Buffer, format: gpu.IndexFormat, offset: u64, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetLabel(render_pass_encoder: gpu.RenderPassEncoder, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetPipeline(render_pass_encoder: gpu.RenderPassEncoder, pipeline: gpu.RenderPipeline) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetScissorRect(render_pass_encoder: gpu.RenderPassEncoder, x: u32, y: u32, width: u32, height: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetStencilReference(render_pass_encoder: gpu.RenderPassEncoder, reference: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetVertexBuffer(render_pass_encoder: gpu.RenderPassEncoder, slot: u32, buffer: gpu.Buffer, offset: u64, size: u64) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderSetViewport(render_pass_encoder: gpu.RenderPassEncoder, x: f32, y: f32, width: f32, height: f32, min_depth: f32, max_depth: f32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderWriteTimestamp(render_pass_encoder: gpu.RenderPassEncoder, query_set: gpu.QuerySet, query_index: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderReference(render_pass_encoder: gpu.RenderPassEncoder) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPassEncoderRelease(render_pass_encoder: gpu.RenderPassEncoder) void {
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,7 +6,19 @@ const PrimitiveState = @import("types.zig").PrimitiveState;
|
|||
const FragmentState = @import("types.zig").FragmentState;
|
||||
const PipelineLayout = @import("pipeline_layout.zig").PipelineLayout;
|
||||
|
||||
pub const RenderPipeline = *opaque {};
|
||||
pub const RenderPipeline = *opaque {
|
||||
// TODO
|
||||
// pub inline fn renderPipelineGetBindGroupLayout(render_pipeline: gpu.RenderPipeline, group_index: u32) gpu.BindGroupLayout {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPipelineSetLabel(render_pipeline: gpu.RenderPipeline, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPipelineReference(render_pipeline: gpu.RenderPipeline) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn renderPipelineRelease(render_pipeline: gpu.RenderPipeline) void {
|
||||
};
|
||||
|
||||
pub const RenderPipelineDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,16 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const FilterMode = @import("types.zig").FilterMode;
|
||||
const CompareFunction = @import("types.zig").CompareFunction;
|
||||
|
||||
pub const Sampler = *opaque {};
|
||||
pub const Sampler = *opaque {
|
||||
// TODO
|
||||
// pub inline fn samplerSetLabel(sampler: gpu.Sampler, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn samplerReference(sampler: gpu.Sampler) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn samplerRelease(sampler: gpu.Sampler) void {
|
||||
};
|
||||
|
||||
pub const SamplerAddressMode = enum(u32) {
|
||||
repeat = 0x00000000,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,18 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const ShaderModule = *opaque {};
|
||||
pub const ShaderModule = *opaque {
|
||||
// TODO
|
||||
// pub inline fn shaderModuleGetCompilationInfo(shader_module: gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn shaderModuleSetLabel(shader_module: gpu.ShaderModule, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn shaderModuleReference(shader_module: gpu.ShaderModule) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn shaderModuleRelease(shader_module: gpu.ShaderModule) void {
|
||||
};
|
||||
|
||||
pub const ShaderModuleDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const Surface = *opaque {};
|
||||
pub const Surface = *opaque {
|
||||
// TODO
|
||||
// pub inline fn surfaceReference(surface: gpu.Surface) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn surfaceRelease(surface: gpu.Surface) void {
|
||||
};
|
||||
|
||||
pub const SurfaceDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,22 @@ const Texture = @import("texture.zig").Texture;
|
|||
const TextureUsageFlags = @import("texture.zig").TextureUsageFlags;
|
||||
const TextureFormat = @import("texture.zig").TextureFormat;
|
||||
|
||||
pub const SwapChain = *opaque {};
|
||||
pub const SwapChain = *opaque {
|
||||
// TODO
|
||||
// pub inline fn swapChainConfigure(swap_chain: gpu.SwapChain, format: gpu.TextureFormat, allowed_usage: gpu.TextureUsageFlags, width: u32, height: u32) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn swapChainGetCurrentTextureView(swap_chain: gpu.SwapChain) gpu.TextureView {
|
||||
|
||||
// TODO
|
||||
// pub inline fn swapChainPresent(swap_chain: gpu.SwapChain) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn swapChainReference(swap_chain: gpu.SwapChain) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn swapChainRelease(swap_chain: gpu.SwapChain) void {
|
||||
};
|
||||
|
||||
pub const SwapChainDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,46 @@ const TextureView = @import("texture_view.zig").TextureView;
|
|||
const TextureViewDimension = @import("texture_view.zig").TextureViewDimension;
|
||||
const Extent3D = @import("types.zig").Extent3D;
|
||||
|
||||
pub const Texture = *opaque {};
|
||||
pub const Texture = *opaque {
|
||||
// TODO
|
||||
// pub inline fn textureCreateView(texture: gpu.Texture, descriptor: ?*const gpu.TextureViewDescriptor) gpu.TextureView {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureDestroy(texture: gpu.Texture) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetDepthOrArrayLayers(texture: gpu.Texture) u32 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetDimension(texture: gpu.Texture) gpu.TextureDimension {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetFormat(texture: gpu.Texture) gpu.TextureFormat {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetHeight(texture: gpu.Texture) u32 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetMipLevelCount(texture: gpu.Texture) u32 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetSampleCount(texture: gpu.Texture) u32 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetUsage(texture: gpu.Texture) gpu.TextureUsage {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureGetWidth(texture: gpu.Texture) u32 {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureSetLabel(texture: gpu.Texture, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureReference(texture: gpu.Texture) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureRelease(texture: gpu.Texture) void {
|
||||
};
|
||||
|
||||
pub const TextureAspect = enum(u32) {
|
||||
all = 0x00000000,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,16 @@ const Texture = @import("texture.zig").Texture;
|
|||
const TextureFormat = @import("texture.zig").TextureFormat;
|
||||
const TextureAspect = @import("texture.zig").TextureAspect;
|
||||
|
||||
pub const TextureView = *opaque {};
|
||||
pub const TextureView = *opaque {
|
||||
// TODO
|
||||
// pub inline fn textureViewSetLabel(texture_view: gpu.TextureView, label: [*:0]const u8) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureViewReference(texture_view: gpu.TextureView) void {
|
||||
|
||||
// TODO
|
||||
// pub inline fn textureViewRelease(texture_view: gpu.TextureView) void {
|
||||
};
|
||||
|
||||
pub const TextureViewDimension = enum(u32) {
|
||||
dimension_undef = 0x00000000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue