gpu: add PipelineLayout.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3ec84f516a
commit
d19c868fb6
3 changed files with 24 additions and 14 deletions
|
|
@ -1,3 +1,6 @@
|
|||
const Texture = @import("Texture.zig");
|
||||
const PredefinedColorSpace = @import("enums.zig").PredefinedColorSpace;
|
||||
|
||||
const ExternalTexture = @This();
|
||||
|
||||
/// The type erased pointer to the ExternalTexture implementation
|
||||
|
|
@ -28,9 +31,17 @@ pub inline fn destroy(texture: ExternalTexture) void {
|
|||
texture.vtable.destroy(texture.ptr);
|
||||
}
|
||||
|
||||
pub const Descriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
plane0: Texture.View,
|
||||
plane1: Texture.View,
|
||||
color_space: PredefinedColorSpace,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
_ = destroy;
|
||||
_ = Descriptor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue