gpu: add BindGroupLayout.Entry
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4fd4c5db7e
commit
4497f6dd69
3 changed files with 20 additions and 13 deletions
|
|
@ -345,7 +345,7 @@ pub const MapMode = packed struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const ShaderStage = packed struct {
|
||||
pub const ShaderStageFlags = packed struct {
|
||||
vertex: bool = false,
|
||||
fragment: bool = false,
|
||||
compute: bool = false,
|
||||
|
|
@ -359,9 +359,9 @@ pub const ShaderStage = packed struct {
|
|||
);
|
||||
}
|
||||
|
||||
pub const none = ShaderStage{};
|
||||
pub const none = ShaderStageFlags{};
|
||||
|
||||
pub fn equal(a: ShaderStage, b: ShaderStage) bool {
|
||||
pub fn equal(a: ShaderStageFlags, b: ShaderStageFlags) bool {
|
||||
return @truncate(u3, @bitCast(u32, a)) == @truncate(u3, @bitCast(u32, b));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue