Using DenseVector and Range properly, deleted unused code from RGB565 test
This commit is contained in:
@@ -167,7 +167,7 @@ namespace c4
|
||||
size_t ret = ryml::unformat(buf, "({},{},{})", x, y, z);
|
||||
if (ret != ryml::yml::npos)
|
||||
{
|
||||
*vec = DenseVector3i<T, REDUCE_Y_RESOLUTION, ASSERT_INPUT_VALUES, BITS_PER_COMPONENT>(x, y, z);
|
||||
*vec = OpenVulkano::Math::DenseVector3i<T, REDUCE_Y_RESOLUTION, ASSERT_INPUT_VALUES, BITS_PER_COMPONENT>(x, y, z);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -202,7 +202,7 @@ namespace c4
|
||||
size_t ret = ryml::unformat(buf, "[{},{}]", minVal, maxVal);
|
||||
if (ret != ryml::yml::npos)
|
||||
{
|
||||
*range = Range<T>(minVal, maxVal);
|
||||
*range = OpenVulkano::Math::Range<T>(minVal, maxVal);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -184,10 +184,6 @@ TEST_CASE("test_rgb565_operators", "[RGB565]")
|
||||
|
||||
rgb1 -= delta;
|
||||
|
||||
uint8_t r = rgb1.GetR();
|
||||
uint8_t g = rgb1.GetG();
|
||||
uint8_t b = rgb1.GetB();
|
||||
|
||||
REQUIRE(rgb1.GetR() == 82);
|
||||
REQUIRE(rgb1.GetG() == 24);
|
||||
REQUIRE(rgb1.GetB() == 0); // Expect to clamp here
|
||||
|
||||
Reference in New Issue
Block a user