Fix metal shader pipeline crashes for LuminanceHistogramGenerator and MorphTargetCS due to the use of atomic operations with typed buffers. Switching them to use Structured buffers. Plus misc cleanup
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ namespace AZ
|
||||
desc.m_bufferName = AZStd::string::format("LuminanceHistogramBuffer_%s", uuidString.c_str());
|
||||
desc.m_elementSize = sizeof(uint32_t);
|
||||
desc.m_byteCount = NumHistogramBins * sizeof(uint32_t);
|
||||
desc.m_elementFormat = RHI::Format::R32_UINT;
|
||||
desc.m_elementFormat = RHI::Format::Unknown;
|
||||
m_histogram = RPI::BufferSystemInterface::Get()->CreateBufferFromCommonPool(desc);
|
||||
AZ_Assert(m_histogram != nullptr, "Unable to allocate buffer");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user