Open gibssa opened 3 weeks ago
note that
test_filamat --gtest_filter=\*.StaticCodeAnalyzerDirectAssignVertex
passes
ah this looks like a bug in how we detect when a property is used. Currently you can't use *=
you have to use =
. It shouldn't be a problem because it's set to identity by default.
ah this looks like a bug in how we detect when a property is used. Currently you can't use
*=
you have to use=
. It shouldn't be a problem because it's set to identity by default.
Works! Thank you for the triage.
Describe the bug
clipSpaceTransform
won't compile at all inmatc
for avertexDomain:device
shader (docs, previous discussion).To Reproduce
git clone git@github.com:google/filament.git
./build.sh release matc
test_direct_pixels.mat
:vertex { void materialVertex(inout MaterialVertexInputs material) { material.clipSpaceTransform *= 0.3; } }
fragment { void material(inout MaterialInputs material) { prepareMaterial(material); vec2 uv = getUV0(); material.baseColor = float4(0.0, 0.1, 0.4, 0.4); } }
➜ filament git:(main) ✗ ./out/cmake-release/tools/matc/matc --api=metal --platform=mobile --output=./test_direct_pixels.filamat ./test_direct_pixels.mat ERROR: Unable to parse vertex shader ERROR: test_direct_pixels.mat:15: 'clipSpaceTransform' : no such field in structure 'material' ERROR: test_direct_pixels.mat:15: '' : compilation terminated ERROR: 2 compilation errors. No code generated.
Could not compile material ./test_direct_pixels.mat