|
|
|
@ -74,7 +74,8 @@ namespace AZ
|
|
|
|
|
|
|
|
|
|
|
|
const RHI::BufferView* Buffer::GetBufferView() const
|
|
|
|
const RHI::BufferView* Buffer::GetBufferView() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(RHI::CheckBitsAny(m_rhiBuffer->GetDescriptor().m_bindFlags, RHI::BufferBindFlags::InputAssembly | RHI::BufferBindFlags::DynamicInputAssembly))
|
|
|
|
if (m_rhiBuffer->GetDescriptor().m_bindFlags == RHI::BufferBindFlags::InputAssembly ||
|
|
|
|
|
|
|
|
m_rhiBuffer->GetDescriptor().m_bindFlags == RHI::BufferBindFlags::DynamicInputAssembly)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
AZ_Assert(false, "Input assembly buffer doesn't need a regular buffer view, it requires a stream or index buffer view.");
|
|
|
|
AZ_Assert(false, "Input assembly buffer doesn't need a regular buffer view, it requires a stream or index buffer view.");
|
|
|
|
|