Skip to content

Commit

Permalink
add place holder implementations for GLSL/MSL to pass tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ld-kerley committed Dec 23, 2024
1 parent c672d0d commit 093fcb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions libraries/stdlib/genglsl/mx_elementat_filenamearray.glsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
void mx_elementat_filenamearray(sampler2DArray in, int index, out sampler2D result)
{

}
2 changes: 1 addition & 1 deletion libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<input name="default" type="vector4" implname="default_value" />
</implementation>

<implementation name="IM_elementat_filenamearray_genglsl" nodedef="ND_elementat_filenamearray" target="genglsl" sourcecode="{{in}}[{{index}}]" />
<implementation name="IM_elementat_filenamearray_genglsl" nodedef="ND_elementat_filenamearray" file="mx_elementat_filenamearray.glsl" function="mx_elementat_filenamearray" target="genglsl"/>

<!-- <normalmap> -->
<implementation name="IM_normalmap_float_genglsl" nodedef="ND_normalmap_float" file="mx_normalmap.glsl" function="mx_normalmap_float" target="genglsl" />
Expand Down
4 changes: 4 additions & 0 deletions libraries/stdlib/genmsl/mx_elementat_filenamearray.msl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
void mx_elementat_filenamearray(MetalTextureArray in, int index, out MetalTexture result)
{

}
2 changes: 1 addition & 1 deletion libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<input name="default" type="vector4" implname="default_value" />
</implementation>

<implementation name="IM_elementat_filenamearray_genmsl" nodedef="ND_elementat_filenamearray" target="genmsl" sourcecode="{{in}}[{{index}}]" />
<implementation name="IM_elementat_filenamearray_genmsl" nodedef="ND_elementat_filenamearray" file="mx_elementat_filenamearray.msl" function="mx_elementat_filenamearray" target="genmsl"/>

<!-- ======================================================================== -->
<!-- Procedural nodes -->
Expand Down

0 comments on commit 093fcb4

Please sign in to comment.