gpu: make RenderPipeline.fragment optional (#212)

pipeline with vertex stage only is perfectly valid

Helps hexops/mach#182
This commit is contained in:
Michal Ziulek 2022-04-10 19:30:34 +02:00 committed by GitHub
parent d0782d24d1
commit a943fbed3e
Failed to generate hash of commit
2 changed files with 13 additions and 11 deletions

View file

@ -43,7 +43,7 @@ pub const Descriptor = struct {
primitive: PrimitiveState,
depth_stencil: ?*const DepthStencilState,
multisample: MultisampleState,
fragment: *const FragmentState,
fragment: ?*const FragmentState,
};
pub const CreateStatus = enum(u32) {