[ATOM][RHI][Vulkan][Android] - use bit conversion from enum to check for gpu query type support (#2141)
ATOM-15742 Signed-off-by: Tony Peng <tonypeng@amazon.com> Signed-off-by: Peng <tonypeng@amazon.com>
This commit is contained in:
@@ -116,7 +116,7 @@ namespace AZ
|
||||
{
|
||||
AZ_Assert(IsQueryTypeValid(queryType), "Provided QueryType is invalid");
|
||||
|
||||
return static_cast<uint32_t>(m_queryTypeSupport) & static_cast<uint32_t>(queryType);
|
||||
return static_cast<uint32_t>(m_queryTypeSupport) & AZ_BIT(static_cast<uint32_t>(queryType));
|
||||
}
|
||||
|
||||
RPI::QueryPool* GpuQuerySystem::GetQueryPoolByType(RHI::QueryType queryType)
|
||||
|
||||
Reference in New Issue
Block a user