gpu: add type-safety for chaining dawn.EncoderInternalUsageDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-16 20:54:03 -07:00
parent 801d772752
commit e9e506720b
2 changed files with 7 additions and 2 deletions

View file

@ -7,7 +7,6 @@ pub const CacheDeviceDescriptor = extern struct {
isolation_key: [*:0]const u8 = "",
};
/// TODO: Can be chained in gpu.CommandEncoder.Descriptor
pub const EncoderInternalUsageDescriptor = extern struct {
chain: ChainedStruct = .{ .next = null, .s_type = .dawn_encoder_internal_usage_descriptor },
use_internal_usages: bool = false,