|
1 | 1 | /* |
2 | | - * Copyright 2019-2024 Diligent Graphics LLC |
| 2 | + * Copyright 2019-2025 Diligent Graphics LLC |
3 | 3 | * Copyright 2015-2019 Egor Yusov |
4 | 4 | * |
5 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -151,30 +151,24 @@ typedef struct DeviceContextDesc DeviceContextDesc; |
151 | 151 | DILIGENT_TYPED_ENUM(DRAW_FLAGS, Uint8) |
152 | 152 | { |
153 | 153 | /// No flags. |
154 | | - DRAW_FLAG_NONE = 0x00, |
| 154 | + DRAW_FLAG_NONE = 0u, |
155 | 155 |
|
156 | 156 | /// Verify the state of index and vertex buffers (if any) used by the draw |
157 | 157 | /// command. State validation is only performed in debug and development builds |
158 | 158 | /// and the flag has no effect in release build. |
159 | | - DRAW_FLAG_VERIFY_STATES = 0x01, |
| 159 | + DRAW_FLAG_VERIFY_STATES = 1u << 0u, |
160 | 160 |
|
161 | 161 | /// Verify correctness of parameters passed to the draw command. |
162 | 162 | /// |
163 | 163 | /// \remarks This flag only has effect in debug and development builds. |
164 | 164 | /// Verification is always disabled in release configuration. |
165 | | - DRAW_FLAG_VERIFY_DRAW_ATTRIBS = 0x02, |
166 | | - |
167 | | - /// Verify that render targets bound to the context are consistent with the pipeline state. |
168 | | - /// |
169 | | - /// \remarks This flag only has effect in debug and development builds. |
170 | | - /// Verification is always disabled in release configuration. |
171 | | - DRAW_FLAG_VERIFY_RENDER_TARGETS = 0x04, |
| 165 | + DRAW_FLAG_VERIFY_DRAW_ATTRIBS = 1u << 1u, |
172 | 166 |
|
173 | 167 | /// Perform all state validation checks |
174 | 168 | /// |
175 | 169 | /// \remarks This flag only has effect in debug and development builds. |
176 | 170 | /// Verification is always disabled in release configuration. |
177 | | - DRAW_FLAG_VERIFY_ALL = DRAW_FLAG_VERIFY_STATES | DRAW_FLAG_VERIFY_DRAW_ATTRIBS | DRAW_FLAG_VERIFY_RENDER_TARGETS, |
| 171 | + DRAW_FLAG_VERIFY_ALL = DRAW_FLAG_VERIFY_STATES | DRAW_FLAG_VERIFY_DRAW_ATTRIBS, |
178 | 172 |
|
179 | 173 | /// Indicates that none of the dynamic resource buffers used by the draw command |
180 | 174 | /// have been modified by the CPU since the last command. |
@@ -218,7 +212,7 @@ DILIGENT_TYPED_ENUM(DRAW_FLAGS, Uint8) |
218 | 212 | /// (see RootSignature::CommitRootViews). When DRAW_FLAG_DYNAMIC_RESOURCE_BUFFERS_INTACT is set, root views are only bound |
219 | 213 | /// by the first draw command that uses the PSO + SRB pair. The flag avoids setting the same GPU virtual addresses when |
220 | 214 | /// they stay unchanged. |
221 | | - DRAW_FLAG_DYNAMIC_RESOURCE_BUFFERS_INTACT = 0x08 |
| 215 | + DRAW_FLAG_DYNAMIC_RESOURCE_BUFFERS_INTACT = 1u << 2u |
222 | 216 | }; |
223 | 217 | DEFINE_FLAG_ENUM_OPERATORS(DRAW_FLAGS) |
224 | 218 |
|
|
0 commit comments