mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
Change graphics key depth-stencil flags to bitfields.
This commit is contained in:
parent
8e7988dc10
commit
e8533207cd
@ -36,12 +36,17 @@ struct GraphicsPipelineKey {
|
||||
vk::Format depth_format;
|
||||
vk::Format stencil_format;
|
||||
|
||||
bool depth_test_enable;
|
||||
bool depth_write_enable;
|
||||
bool depth_bounds_test_enable;
|
||||
bool depth_bias_enable;
|
||||
struct {
|
||||
bool depth_test_enable : 1;
|
||||
bool depth_write_enable : 1;
|
||||
bool depth_bounds_test_enable : 1;
|
||||
bool depth_bias_enable : 1;
|
||||
bool stencil_test_enable : 1;
|
||||
// Must be named to be zero-initialized.
|
||||
u8 _unused : 3;
|
||||
};
|
||||
vk::CompareOp depth_compare_op;
|
||||
bool stencil_test_enable;
|
||||
|
||||
u32 num_samples;
|
||||
u32 mrt_mask;
|
||||
AmdGpu::PrimitiveType prim_type;
|
||||
|
Loading…
Reference in New Issue
Block a user