... | ... |
@@ -80,6 +80,16 @@ void test() { |
80 | 80 |
"good.vert", |
81 | 81 |
"good.frag", |
82 | 82 |
}); |
83 |
+ |
|
84 |
+ Shader shaderMove; |
|
85 |
+ Shader shaderCopy; |
|
86 |
+ |
|
87 |
+ std::cout << "Moving shader" << std::endl; |
|
88 |
+ shaderMove = Shader({"test.vert", "test.frag"}); |
|
89 |
+ |
|
90 |
+ std::cout << "Copying shader" << std::endl; |
|
91 |
+ shaderCopy = shaderMove; |
|
92 |
+ |
|
83 | 93 |
shader.use(); |
84 | 94 |
shader.validate(); |
85 | 95 |
|