Vulkan: Fix Compilation Issues on Windows

VKVertexAttributeObject was both defined as a class and a struct.
Settled on being a class.

Also removed an assert that is currently failing as workbench has
more attributes defined than actually used.

Pull Request: https://projects.blender.org/blender/blender/pulls/107874
This commit is contained in:
Jeroen Bakker
2023-05-12 12:38:42 +02:00
parent 7a52ad1161
commit 4cf7b95a15
2 changed files with 2 additions and 3 deletions

View File

@@ -96,8 +96,6 @@ void VKVertexAttributeObject::update_bindings(const VKContext &context, VKBatch
}
is_valid = true;
BLI_assert(interface.enabled_attr_mask_ == occupied_attributes);
}
void VKVertexAttributeObject::update_bindings(VKImmediate &immediate)

View File

@@ -22,7 +22,8 @@ class VKImmediate;
using AttributeMask = uint16_t;
struct VKVertexAttributeObject {
class VKVertexAttributeObject {
public:
bool is_valid = false;
VkPipelineVertexInputStateCreateInfo info = {
VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO, NULL};