Replies: 1 comment
-
|
Seems that using textures in generics in Game Studio is currently not allowed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I attempted to pass a Texture2D object using Template arguments (generics) to perform my custom texture sampling calculations, but this resulted in an error.
[(1,1)]: Error: E0237: The variable [Material] in class [TestShader_2082295692] is not defined[(1,1)]: Error: E0238: Unable to infer type for [Material] in class [TestShader_2082295692]The object obtained by the "Compositions" method is another ColorCompute object, which cannot directly access the Texture2D texture I assigned in the editor – only the pre-sampled color values can be retrieved directly. I would like to ask for everyone's help: how can I use SDSL in the editor to pass in a Texture2D and implement custom sampling? Thanks~
my error testCode:
Beta Was this translation helpful? Give feedback.
All reactions