Skip to content

Commit

Permalink
CI debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wpmed92 committed Sep 12, 2024
1 parent 9406b1f commit 5175586
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CodeGen/Swizzle.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "CodeGen/Swizzle.h"
#include <vector>
#include <iostream>

namespace shaderpulse {

Expand All @@ -24,6 +25,7 @@ mlir::Value swizzle(mlir::OpBuilder &builder, mlir::Value composite, ast::Member
if (auto var = dynamic_cast<ast::VariableExpression*>(member.get())) {
std::vector<int> indices;
auto swizzle = var->getName();
std::cerr << "Swizzle: " << swizzle << std::endl;

if (swizzle.length() == 1) {
indices.push_back(swizzleMap.find(swizzle[0])->second);
Expand Down

0 comments on commit 5175586

Please sign in to comment.