- bind the vertex inputs as specified by its vertex buffer format

This commit is contained in:
Magnus Norddahl 2019-03-01 15:37:13 +01:00
commit c691a8fe64
6 changed files with 79 additions and 28 deletions

View file

@ -3,6 +3,7 @@
#include "vk_builders.h"
#include "vk_framebuffer.h"
#include "vulkan/renderer/vk_renderstate.h"
#include "vulkan/renderer/vk_renderpass.h"
#include "doomerrors.h"
VKBuffer::~VKBuffer()
@ -119,6 +120,7 @@ void VKBuffer::Unlock()
void VKVertexBuffer::SetFormat(int numBindingPoints, int numAttributes, size_t stride, const FVertexBufferAttribute *attrs)
{
VertexFormat = GetVulkanFrameBuffer()->GetRenderPassManager()->GetVertexFormat(numBindingPoints, numAttributes, stride, attrs);
}
/////////////////////////////////////////////////////////////////////////////