Skip to content

Commit

Permalink
random comment remains
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-gillott committed Dec 11, 2020
1 parent f7755bb commit 7d5a025
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/emitHL.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ and attrib_type (var_name : string) : string =
if var_name.[0] = 'a' then "attribute"
else if var_name.[0] = 'v' then "varying"
else if var_name.[0] = 'u' then "uniform"
else failwith "Not a supported glsl attribute"
else failwith "Not a supported hlsl attribute"

and op_wrap (op : exp) : string =
debug_print ">> op_wrap" ;
Expand Down
3 changes: 0 additions & 3 deletions unity_experiment/hl_defs.lgl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ declare T textureCube(samplerCube<T> texture, float[2] coord);
with float[4] T:
declare T textureCube(samplerCube<T> texture, float[3] coord);

//TODO: Implement switch1 float(v) to float(v.x,v.y etc)??
declare float2 float2(float x, float y);
declare float3 float3(float x, float y, float z);
declare float4 float4(float x, float y, float z, float w);
Expand Down Expand Up @@ -421,8 +420,6 @@ coordinate hom : geometry {
with frame(3) r:
canon hom<r>.point homify(cart3<r>.point v) {
return float4(v[0], v[1], v[2], 1.) as! hom<r>.point;
// return float4(v.x, v.y, v.z, 1.) as! hom<r>.point;

}
with frame(3) r:
canon hom<r>.vector homify(cart3<r>.vector v) {
Expand Down

0 comments on commit 7d5a025

Please sign in to comment.