Skip to content

Commit

Permalink
Fix missing struct access
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Jun 25, 2024
1 parent 0746e1d commit e5a8a34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public static string Lod(CodeGenContext context, AstOperation operation)
coordsExpr = GetSourceExpr(context, texOp.GetSource(coordsIndex), AggregateType.FP32);
}

return $"textures.tex_{samplerName}.calculate_unclamped_lod(samp_{samplerName}, {coordsExpr}){GetMaskMultiDest(texOp.Index)}";
return $"textures.tex_{samplerName}.calculate_unclamped_lod(textures.samp_{samplerName}, {coordsExpr}){GetMaskMultiDest(texOp.Index)}";
}

public static string Store(CodeGenContext context, AstOperation operation)
Expand Down

0 comments on commit e5a8a34

Please sign in to comment.