VulkanRenderer: Some fixes
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Nz
|
|||||||
{
|
{
|
||||||
switch (componentType)
|
switch (componentType)
|
||||||
{
|
{
|
||||||
case ComponentType::Color: return VK_FORMAT_R8G8B8A8_UINT;
|
case ComponentType::Color: return VK_FORMAT_R8G8B8A8_UNORM;
|
||||||
case ComponentType::Double1: return VK_FORMAT_R64_SFLOAT;
|
case ComponentType::Double1: return VK_FORMAT_R64_SFLOAT;
|
||||||
case ComponentType::Double2: return VK_FORMAT_R64G64_SFLOAT;
|
case ComponentType::Double2: return VK_FORMAT_R64G64_SFLOAT;
|
||||||
case ComponentType::Double3: return VK_FORMAT_R64G64B64_SFLOAT;
|
case ComponentType::Double3: return VK_FORMAT_R64G64B64_SFLOAT;
|
||||||
|
|||||||
@@ -218,6 +218,9 @@ namespace Nz
|
|||||||
|
|
||||||
for (const auto& componentInfo : bufferData.declaration->GetComponents())
|
for (const auto& componentInfo : bufferData.declaration->GetComponents())
|
||||||
{
|
{
|
||||||
|
if (componentInfo.component == VertexComponent::Unused)
|
||||||
|
continue;
|
||||||
|
|
||||||
auto& bufferAttribute = vertexAttributes.emplace_back();
|
auto& bufferAttribute = vertexAttributes.emplace_back();
|
||||||
bufferAttribute.binding = binding;
|
bufferAttribute.binding = binding;
|
||||||
bufferAttribute.location = locationIndex++;
|
bufferAttribute.location = locationIndex++;
|
||||||
|
|||||||
Reference in New Issue
Block a user