mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Point,Line,Triangle -> PointList,LineList,TriangleList
This commit is contained in:
@@ -249,8 +249,8 @@ class PrimitiveTopologyTest : public NXTTest {
|
||||
};
|
||||
|
||||
// Test Point primitive topology
|
||||
TEST_P(PrimitiveTopologyTest, Point) {
|
||||
DoTest(nxt::PrimitiveTopology::Point, {
|
||||
TEST_P(PrimitiveTopologyTest, PointList) {
|
||||
DoTest(nxt::PrimitiveTopology::PointList, {
|
||||
// Check that the points are drawn
|
||||
TestPoints(kPointTestLocations, true),
|
||||
|
||||
@@ -263,8 +263,8 @@ TEST_P(PrimitiveTopologyTest, Point) {
|
||||
}
|
||||
|
||||
// Test Line primitive topology
|
||||
TEST_P(PrimitiveTopologyTest, Line) {
|
||||
DoTest(nxt::PrimitiveTopology::Line, {
|
||||
TEST_P(PrimitiveTopologyTest, LineList) {
|
||||
DoTest(nxt::PrimitiveTopology::LineList, {
|
||||
// Check that lines are drawn
|
||||
TestPoints(kLineTestLocations, true),
|
||||
|
||||
@@ -289,8 +289,8 @@ TEST_P(PrimitiveTopologyTest, LineStrip) {
|
||||
}
|
||||
|
||||
// Test Triangle primitive topology
|
||||
TEST_P(PrimitiveTopologyTest, Triangle) {
|
||||
DoTest(nxt::PrimitiveTopology::Triangle, {
|
||||
TEST_P(PrimitiveTopologyTest, TriangleList) {
|
||||
DoTest(nxt::PrimitiveTopology::TriangleList, {
|
||||
// Check that triangles are drawn
|
||||
TestPoints(kTriangleTestLocations, true),
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class RenderPipelineValidationTest : public ValidationTest {
|
||||
.SetLayout(pipelineLayout)
|
||||
.SetStage(nxt::ShaderStage::Vertex, vsModule, "main")
|
||||
.SetStage(nxt::ShaderStage::Fragment, fsModule, "main")
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::Triangle);
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::TriangleList);
|
||||
return builder;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ TEST_F(RenderPipelineValidationTest, CreationMissingProperty) {
|
||||
.SetSubpass(renderpass, 0)
|
||||
.SetLayout(pipelineLayout)
|
||||
.SetStage(nxt::ShaderStage::Fragment, fsModule, "main")
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::Triangle)
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::TriangleList)
|
||||
.GetResult();
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ TEST_F(RenderPipelineValidationTest, CreationMissingProperty) {
|
||||
.SetSubpass(renderpass, 0)
|
||||
.SetLayout(pipelineLayout)
|
||||
.SetStage(nxt::ShaderStage::Vertex, vsModule, "main")
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::Triangle)
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::TriangleList)
|
||||
.GetResult();
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ TEST_F(RenderPipelineValidationTest, CreationMissingProperty) {
|
||||
.SetLayout(pipelineLayout)
|
||||
.SetStage(nxt::ShaderStage::Vertex, vsModule, "main")
|
||||
.SetStage(nxt::ShaderStage::Fragment, fsModule, "main")
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::Triangle)
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::TriangleList)
|
||||
.GetResult();
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ TEST_F(RenderPipelineValidationTest, DISABLED_TodoCreationMissingProperty) {
|
||||
.SetSubpass(renderpass, 0)
|
||||
.SetStage(nxt::ShaderStage::Vertex, vsModule, "main")
|
||||
.SetStage(nxt::ShaderStage::Fragment, fsModule, "main")
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::Triangle)
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::TriangleList)
|
||||
.GetResult();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ TEST_F(RenderPipelineValidationTest, DISABLED_CreationDuplicates) {
|
||||
// Fails because primitive topology is set twice
|
||||
{
|
||||
AddDefaultStates(AssertWillBeError(device.CreateRenderPipelineBuilder()))
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::Triangle)
|
||||
.SetPrimitiveTopology(nxt::PrimitiveTopology::TriangleList)
|
||||
.GetResult();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user