mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 03:35:59 +00:00
specify custom brace style to fix unions
BreakBeforeBraces: Allman apparently includes all styles, except for AfterUnion (which is false) when using clang-format -dump-config
This commit is contained in:
parent
41101be545
commit
23d99f2f2c
47 changed files with 375 additions and 182 deletions
|
@ -19,13 +19,15 @@ namespace DX12
|
|||
{
|
||||
class PipelineStateCacheInserter;
|
||||
|
||||
union RasterizerState {
|
||||
union RasterizerState
|
||||
{
|
||||
BitField<0, 2, D3D12_CULL_MODE> cull_mode;
|
||||
|
||||
u32 hex;
|
||||
};
|
||||
|
||||
union BlendState {
|
||||
union BlendState
|
||||
{
|
||||
BitField<0, 1, u32> blend_enable;
|
||||
BitField<1, 3, D3D12_BLEND_OP> blend_op;
|
||||
BitField<4, 4, u8> write_mask;
|
||||
|
@ -36,7 +38,8 @@ union BlendState {
|
|||
u32 hex;
|
||||
};
|
||||
|
||||
union SamplerState {
|
||||
union SamplerState
|
||||
{
|
||||
BitField<0, 3, u32> min_filter;
|
||||
BitField<3, 1, u32> mag_filter;
|
||||
BitField<4, 8, u32> min_lod;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue