diff --git a/example/Vulkan/second_triangle.cpp b/example/Vulkan/second_triangle.cpp index f1c19132..286b94ea 100644 --- a/example/Vulkan/second_triangle.cpp +++ b/example/Vulkan/second_triangle.cpp @@ -45,7 +45,7 @@ private: bool InitMaterial() { - mtl::Material2DCreateConfig cfg("VertexColor2D"); + mtl::Material2DCreateConfig cfg(device->GetDeviceAttribute(),"VertexColor2D"); #ifdef USE_ZERO2ONE_COORD cfg.coordinate_system=CoordinateSystem2D::ZeroToOne; diff --git a/example/Vulkan/third_triangle.cpp b/example/Vulkan/third_triangle.cpp index 4cbdbfd3..a1ac45c7 100644 --- a/example/Vulkan/third_triangle.cpp +++ b/example/Vulkan/third_triangle.cpp @@ -46,7 +46,7 @@ private: bool InitMaterial() { { - mtl::Material2DCreateConfig cfg("VertexColor2D"); + mtl::Material2DCreateConfig cfg(device->GetDeviceAttribute(),"VertexColor2D"); cfg.coordinate_system=CoordinateSystem2D::NDC; cfg.local_to_world=true;