Updated to use cpp raw literal strings
This commit is contained in:
parent
1449c858ee
commit
d11b4c3c75
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ int main() {
|
|||
auto tensorA = std::make_shared<kp::Tensor>(kp::Tensor({ 0, 1, 2 }));
|
||||
auto tensorRhs = std::make_shared<kp::Tensor>(kp::Tensor({ 2, 4, 6 }));
|
||||
|
||||
// Define your shader as a string, or directly pass the compiled bytes
|
||||
// Define your shader as a string (using string literals for simplicity)
|
||||
// Or pass the raw bytes of the compiled shader as uint32_t
|
||||
std::string shader(R"(
|
||||
#version 450
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue