It seems Custom Render Textures are not supported, is this correct?
This is what I get when trying to use one:
KeyNotFoundException: The given key ‘UnityEngine.CustomRenderTexture’ was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at :0)
Unity.PolySpatial.Internals.LocalAssetManager.RegisterFirstReference (Unity.PolySpatial.Internals.AssetRepresentation representation) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/AssetManagement/LocalAssetManager.cs:372)
I was able to use them with custom shaders in my test project by assigning a custom shader material to the texture and using it as input in a shader graph. Then I created another material from that shader graph and assigned it to my object.
Not sure I this is the proper way, but it worked for my test case.
We have a fix for this issue in the pipeline for the next bugfix release (which will treat CustomRenderTextures as we do RenderTextures). We haven’t done much testing with CustomRenderTextures (versus normal RenderTextures), though, so we can’t be sure if they’ll support the features you want.
Ok nice! I just want to update a texture with a shader every frame. Fingers crossed then!