src/gpu: move github.com/hexops/mach-gpu here
This moves github.com/hexops/mach-gpu@528dad0823dafeae5d474c88cc658b091bf2e605 to
this repository in the src/gpu directory. It can be imported via `@import("mach").gpu`.
Soon we will move away from mach-gpu entirely as part of #1166 - but in the meantime
I am giving a workshop at https://sycl.it and it would be nice for people using the
`mach.gpu.*` API to be able to search the API in this single repository.
There's not much harm to moving this code here.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c45606c290
commit
2cf68adcc7
38 changed files with 8123 additions and 18 deletions
|
|
@ -57,7 +57,7 @@ pub const options = if (@hasDecl(@import("root"), "mach_core_options"))
|
|||
else
|
||||
ComptimeOptions{};
|
||||
|
||||
pub const wgpu = @import("mach-gpu");
|
||||
pub const wgpu = @import("../gpu/main.zig");
|
||||
|
||||
pub const gpu = if (options.use_sysgpu) sysgpu.sysgpu else wgpu;
|
||||
|
||||
|
|
@ -154,7 +154,9 @@ pub const Options = struct {
|
|||
power_preference: gpu.PowerPreference = .undefined,
|
||||
required_features: ?[]const gpu.FeatureName = null,
|
||||
required_limits: ?gpu.Limits = null,
|
||||
swap_chain_usage: gpu.Texture.UsageFlags = .{ .render_attachment = true, },
|
||||
swap_chain_usage: gpu.Texture.UsageFlags = .{
|
||||
.render_attachment = true,
|
||||
},
|
||||
};
|
||||
|
||||
pub fn init(options_in: Options) !void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue