File tree Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,11 @@ class NBL_API2 IRenderpass
165
165
{
166
166
enum RESOLVE_MODE : uint8_t
167
167
{
168
- NONE = nbl:: hlsl::ResolveModeFlags::NONE,
169
- SAMPLE_ZERO_BIT = nbl:: hlsl::ResolveModeFlags::SAMPLE_ZERO_BIT,
170
- AVERAGE_BIT = nbl:: hlsl::ResolveModeFlags::AVERAGE_BIT,
171
- MIN_BIT = nbl:: hlsl::ResolveModeFlags::MIN_BIT,
172
- MAX_BIT = nbl:: hlsl::ResolveModeFlags::MAX_BIT
168
+ NONE = hlsl::ResolveModeFlags::NONE,
169
+ SAMPLE_ZERO_BIT = hlsl::ResolveModeFlags::SAMPLE_ZERO_BIT,
170
+ AVERAGE_BIT = hlsl::ResolveModeFlags::AVERAGE_BIT,
171
+ MIN_BIT = hlsl::ResolveModeFlags::MIN_BIT,
172
+ MAX_BIT = hlsl::ResolveModeFlags::MAX_BIT
173
173
};
174
174
struct ResolveMode
175
175
{
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ enum SwapchainMode : uint16_t {
93
93
NBL_ENUM_ADD_BITWISE_OPERATORS (ShaderStage)
94
94
NBL_ENUM_ADD_BITWISE_OPERATORS (SampleCountFlags)
95
95
NBL_ENUM_ADD_BITWISE_OPERATORS (ResolveModeFlags)
96
- NBL_ENUM_ADD_BITWISE_OPERATORS (SpirvVersion)
96
+ NBL_ENUM_ADD_BITWISE_OPERATORS (SpirvVersion) // erm do we want this?
97
97
NBL_ENUM_ADD_BITWISE_OPERATORS (PointClippingBehavior)
98
98
NBL_ENUM_ADD_BITWISE_OPERATORS (SwapchainMode)
99
99
#endif
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct SPhysicalDeviceLimits
23
23
EPCB_ALL_CLIP_PLANES = nbl::hlsl::PointClippingBehavior::EPCB_ALL_CLIP_PLANES,
24
24
EPCB_USER_CLIP_PLANES_ONLY = nbl::hlsl::PointClippingBehavior::EPCB_USER_CLIP_PLANES_ONLY
25
25
};
26
- using RESOLVE_MODE_FLAGS = asset::IRenderpass::SCreationParams::SSubpassDescription::SDepthStencilAttachmentsRef::RESOLVE_MODE ;
26
+ using RESOLVE_MODE_FLAGS = nbl::hlsl::ResolveModeFlags ;
27
27
28
28
#include " nbl/video/SPhysicalDeviceLimits_members.h"
29
29
Original file line number Diff line number Diff line change @@ -443,8 +443,8 @@ std::unique_ptr<CVulkanPhysicalDevice> CVulkanPhysicalDevice::create(core::smart
443
443
properties.limits .maxDescriptorSetUpdateAfterBindStorageImages = vulkan12Properties.maxDescriptorSetUpdateAfterBindStorageImages ;
444
444
properties.limits .maxDescriptorSetUpdateAfterBindInputAttachments = vulkan12Properties.maxDescriptorSetUpdateAfterBindInputAttachments ;
445
445
446
- properties.limits .supportedDepthResolveModes = static_cast <SPhysicalDeviceLimits::RESOLVE_MODE_FLAGS >(vulkan12Properties.supportedDepthResolveModes );
447
- properties.limits .supportedStencilResolveModes = static_cast <SPhysicalDeviceLimits::RESOLVE_MODE_FLAGS >(vulkan12Properties.supportedStencilResolveModes );
446
+ properties.limits .supportedDepthResolveModes = static_cast <nbl::hlsl::ResolveModeFlags >(vulkan12Properties.supportedDepthResolveModes );
447
+ properties.limits .supportedStencilResolveModes = static_cast <nbl::hlsl::ResolveModeFlags >(vulkan12Properties.supportedStencilResolveModes );
448
448
449
449
if (!vulkan12Properties.independentResolve || !vulkan12Properties.independentResolveNone )
450
450
return nullptr ;
Original file line number Diff line number Diff line change @@ -712,10 +712,9 @@ core::smart_refctd_ptr<IGPURenderpass> ILogicalDevice::createRenderpass(const IG
712
712
{
713
713
depthSamples = params.depthStencilAttachments [subpass.depthStencilAttachment .render .attachmentIndex ].samples ;
714
714
715
- using resolve_flag_t = IGPURenderpass::SCreationParams::SSubpassDescription::SDepthStencilAttachmentsRef::RESOLVE_MODE;
716
715
// TODO: seems like `multisampledRenderToSingleSampledEnable` needs resolve modes but not necessarily a resolve attachmen
717
- const resolve_flag_t depthResolve = subpass.depthStencilAttachment .resolveMode .depth ;
718
- const resolve_flag_t stencilResolve = subpass.depthStencilAttachment .resolveMode .stencil ;
716
+ const hlsl::ResolveModeFlags depthResolve = static_cast <hlsl::ResolveModeFlags>( subpass.depthStencilAttachment .resolveMode .depth ) ;
717
+ const hlsl::ResolveModeFlags stencilResolve = static_cast <hlsl::ResolveModeFlags>( subpass.depthStencilAttachment .resolveMode .stencil ) ;
719
718
if (subpass.depthStencilAttachment .resolve .used () || /* multisampledToSingleSampledUsed*/ false )
720
719
{
721
720
const auto & attachment = params.depthStencilAttachments [(subpass.depthStencilAttachment .resolve .used () ? subpass.depthStencilAttachment .resolve : subpass.depthStencilAttachment .render ).attachmentIndex ];
@@ -739,7 +738,7 @@ core::smart_refctd_ptr<IGPURenderpass> ILogicalDevice::createRenderpass(const IG
739
738
}
740
739
741
740
// https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkSubpassDescriptionDepthStencilResolve-pNext-06873
742
- if (/* multisampledToSingleSampledUsed*/ false && depthResolve == resolve_flag_t :: NONE && stencilResolve == resolve_flag_t ::NONE)
741
+ if (/* multisampledToSingleSampledUsed*/ false && depthResolve == hlsl::ResolveModeFlags:: NONE && stencilResolve == hlsl::ResolveModeFlags ::NONE)
743
742
{
744
743
NBL_LOG_ERROR (" Invalid stencil attachment's resolve mode (subpasses[%u])" , i);
745
744
return nullptr ;
Original file line number Diff line number Diff line change 1110
1110
{
1111
1111
"type" : " core::bitflag<RESOLVE_MODE_FLAGS>" ,
1112
1112
"name" : " supportedDepthResolveModes" ,
1113
- "value" : " core::bitflag< RESOLVE_MODE_FLAGS>(RESOLVE_MODE_FLAGS ::SAMPLE_ZERO_BIT) | RESOLVE_MODE_FLAGS::MIN_BIT | RESOLVE_MODE_FLAGS::MAX_BIT"
1113
+ "value" : " RESOLVE_MODE_FLAGS::SAMPLE_ZERO_BIT | RESOLVE_MODE_FLAGS::MIN_BIT | RESOLVE_MODE_FLAGS::MAX_BIT"
1114
1114
},
1115
1115
{
1116
1116
"type" : " core::bitflag<RESOLVE_MODE_FLAGS>" ,
You can’t perform that action at this time.
0 commit comments