Skip to content

Commit 021b15b

Browse files
Merge pull request #117 from GPUOpen-LibrariesAndSDKs/update_wk43_2
Bug-fixes and improvements
2 parents 15d1353 + e99d36f commit 021b15b

10 files changed

Lines changed: 449 additions & 37 deletions

File tree

examples/DynamicBuffers/src/app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ void App::init_gfx_pipelines()
10121012
consumer_pipeline_info_ptr->set_descriptor_set_create_info(m_consumer_dsg_ptr->get_descriptor_set_create_info() );
10131013
consumer_pipeline_info_ptr->set_primitive_topology (Anvil::PrimitiveTopology::LINE_STRIP);
10141014
consumer_pipeline_info_ptr->set_rasterization_properties (Anvil::PolygonMode::FILL,
1015-
Anvil::CullModeFlagBits::CULL_MODE_NONE,
1015+
Anvil::CullModeFlagBits::NONE,
10161016
Anvil::FrontFace::COUNTER_CLOCKWISE,
10171017
1.0f /* line_width */);
10181018
consumer_pipeline_info_ptr->toggle_depth_test (true, /* should_enable */

examples/OutOfOrderRasterization/src/app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ void App::init_gfx_pipelines()
761761

762762
pipeline_create_info_ptr->set_primitive_topology (Anvil::PrimitiveTopology::TRIANGLE_LIST);
763763
pipeline_create_info_ptr->set_rasterization_properties(Anvil::PolygonMode::FILL,
764-
Anvil::CullModeFlagBits::CULL_MODE_BACK_BIT,
764+
Anvil::CullModeFlagBits::BACK_BIT,
765765
Anvil::FrontFace::CLOCKWISE,
766766
4.0f); /* line_width */
767767
pipeline_create_info_ptr->toggle_depth_test (true, /* should_enable */

include/misc/extensions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ namespace Anvil
982982
/* 3. Disable VK_AMD_shader_info by default. */
983983
extension_status[VK_AMD_SHADER_INFO_EXTENSION_NAME] = Anvil::ExtensionAvailability::IGNORE;
984984
}
985-
985+
986986
std::map<std::string, ExtensionAvailability> extension_status;
987987

988988
bool operator==(const DeviceExtensionConfiguration& in_config) const

include/misc/formats.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ namespace Anvil
3232
class Formats
3333
{
3434
public:
35+
/* Returns a list of formats compatible with @param in_format.
36+
*
37+
* The returned array includes @param in_format.
38+
*
39+
* @param in_format Format to use to determine compatibility class to use for the query.
40+
* @param out_n_compatible_formats_ptr Deref will be set to the number of formats accessible under *out_compatible_formats_ptr_ptr.
41+
* Must not be nullptr.
42+
* @param out_compatible_formats_ptr_ptr Deref will be set to a ptr to a linear list of formats compatible with @param in_format.
43+
*
44+
* @return true if successful, false otherwise.
45+
*/
46+
static bool get_compatible_formats(Anvil::Format in_format,
47+
uint32_t* out_n_compatible_formats_ptr,
48+
const Anvil::Format** out_compatible_formats_ptr_ptr);
49+
3550
static bool get_compressed_format_block_size(Anvil::Format in_format,
3651
uint32_t* out_block_size_uvec2_ptr,
3752
uint32_t* out_n_bytes_per_block_ptr);

include/misc/graphics_pipeline_create_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Anvil
3131
{
3232
public:
3333
/* Public functions */
34-
static Anvil::GraphicsPipelineCreateInfoUniquePtr create (const Anvil::PipelineCreateFlags& in_create_flags,
34+
static Anvil::GraphicsPipelineCreateInfoUniquePtr create (const Anvil::PipelineCreateFlags& in_create_flags,
3535
const RenderPass* in_renderpass_ptr,
3636
SubPassID in_subpass_id,
3737
const ShaderModuleStageEntryPoint& in_fragment_shader_stage_entrypoint_info,

include/misc/types_enums.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ namespace Anvil
650650
FRONT_BIT = VK_CULL_MODE_FRONT_BIT,
651651
NONE = VK_CULL_MODE_NONE,
652652

653-
FRONT_AND_BACK = VK_CULL_MODE_FRONT_AND_BACK
653+
FRONT_AND_BACK = VK_CULL_MODE_FRONT_AND_BACK,
654654
};
655655
typedef Anvil::Bitfield<Anvil::CullModeFlagBits, VkCullModeFlags> CullModeFlags;
656656

@@ -986,6 +986,7 @@ namespace Anvil
986986
USCALED,
987987

988988
UNKNOWN,
989+
COUNT = UNKNOWN
989990
} ;
990991

991992
enum class FrontFace
@@ -1728,4 +1729,4 @@ namespace Anvil
17281729
};
17291730
}; /* namespace Anvil */
17301731

1731-
#endif /* TYPES_ENUMS_H */
1732+
#endif /* TYPES_ENUMS_H */

0 commit comments

Comments
 (0)