Core/Color: Switch formal from RGBA8 to RGBA32F
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Nz
|
||||
{
|
||||
switch (componentType)
|
||||
{
|
||||
case ComponentType::Color: return VK_FORMAT_R8G8B8A8_UNORM;
|
||||
case ComponentType::Color: return VK_FORMAT_R32G32B32A32_SFLOAT;
|
||||
case ComponentType::Double1: return VK_FORMAT_R64_SFLOAT;
|
||||
case ComponentType::Double2: return VK_FORMAT_R64G64_SFLOAT;
|
||||
case ComponentType::Double3: return VK_FORMAT_R64G64B64_SFLOAT;
|
||||
@@ -123,7 +123,6 @@ namespace Nz
|
||||
case ComponentType::Int2: return VK_FORMAT_R32G32_SINT;
|
||||
case ComponentType::Int3: return VK_FORMAT_R32G32B32_SINT;
|
||||
case ComponentType::Int4: return VK_FORMAT_R32G32B32A32_SINT;
|
||||
case ComponentType::Quaternion: return VK_FORMAT_R32G32B32A32_SFLOAT;
|
||||
}
|
||||
|
||||
NazaraError("Unhandled ComponentType 0x" + NumberToString(UnderlyingCast(componentType), 16));
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Nz
|
||||
|
||||
inline void CommandBuffer::BeginDebugRegion(const char* label)
|
||||
{
|
||||
return BeginDebugRegion(label, Color(0, 0, 0, 0));
|
||||
return BeginDebugRegion(label, Color::Black);
|
||||
}
|
||||
|
||||
inline void CommandBuffer::BeginDebugRegion(const char* label, Color color)
|
||||
@@ -133,10 +133,10 @@ namespace Nz
|
||||
nullptr,
|
||||
label,
|
||||
{
|
||||
color.r / 255.f,
|
||||
color.g / 255.f,
|
||||
color.b / 255.f,
|
||||
color.a / 255.f
|
||||
color.r,
|
||||
color.g,
|
||||
color.b,
|
||||
color.a
|
||||
}
|
||||
};
|
||||
|
||||
@@ -374,7 +374,7 @@ namespace Nz
|
||||
|
||||
inline void CommandBuffer::InsertDebugLabel(const char* label)
|
||||
{
|
||||
return InsertDebugLabel(label, Color(0, 0, 0, 0));
|
||||
return InsertDebugLabel(label, Color::Black);
|
||||
}
|
||||
|
||||
inline void CommandBuffer::InsertDebugLabel(const char* label, Color color)
|
||||
@@ -387,10 +387,10 @@ namespace Nz
|
||||
nullptr,
|
||||
label,
|
||||
{
|
||||
color.r / 255.f,
|
||||
color.g / 255.f,
|
||||
color.b / 255.f,
|
||||
color.a / 255.f
|
||||
color.r,
|
||||
color.g,
|
||||
color.b,
|
||||
color.a
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user