gpu: convert Texture from enum(usize) to *opaque

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 15:05:16 -07:00 committed by Stephen Gutekanst
parent 7f952545b9
commit c0ad349a12
7 changed files with 202 additions and 197 deletions

View file

@ -1,5 +1,6 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const Texture = @import("texture.zig").Texture;
const TextureUsageFlags = @import("texture.zig").TextureUsageFlags;
pub const CacheDeviceDescriptor = extern struct {
// TODO: file an issue on Dawn: why not named nextInChain?
@ -21,7 +22,7 @@ pub const InstanceDescriptor = extern struct {
pub const TextureInternalUsageDescriptor = extern struct {
chain: ChainedStruct,
internal_usage: Texture.UsageFlags,
internal_usage: TextureUsageFlags,
};
pub const TogglesDeviceDescriptor = extern struct {