[1304] VRCRenderTexture.GetTemporary crashing when antialiasing parameter is the default value
tracked
techanon
When trying to call GetTemporary, my script is crashing
My U#
var customTexture = VRCRenderTexture.GetTemporary(3840, 2160, 0, RenderTextureFormat.ARGB32, RenderTextureReadWrite.sRGB);
The error:
An exception occurred during EXTERN to 'VRCSDKBaseVRCRenderTexture.__GetTemporary__SystemInt32_SystemInt32_SystemInt32_UnityEngineRenderTextureFormat_UnityEngineRenderTextureReadWrite_SystemInt32_UnityEngineRenderTextureMemoryless_UnityEngineVRTextureUsage_SystemBoolean__UnityEngineRenderTexture'.
Parameter Addresses: 0x000000C9, 0x000000CA, 0x0000006F, 0x000000CB, 0x000000CC, 0x0000006F, 0x000000CD, 0x000000CE, 0x00000059, 0x00000033
RenderTextureDesc msaaSamples must be 1, 2, 4, or 8.
Parameter name: desc.msaaSamples
Had some discussion and the solution turned out to be the default value for antialiasing parameter is 0 where the only allowed values are 1 2 4 and 8, so the default should probably be 1 instead of 0.
Log In
apple_blossom
Just got this exact issue in SDK 3.6.1, very mildly inconvenient.
Error (with folder structure replaced with x's):
[UdonSharp] Assets/xxx/xxx/xxx/xxx.cs(16,65): Udon runtime exception detected!
An exception occurred during EXTERN to 'VRCSDKBaseVRCRenderTexture.__GetTemporary__SystemInt32_SystemInt32_SystemInt32_UnityEngineRenderTextureFormat_UnityEngineRenderTextureReadWrite_SystemInt32_UnityEngineRenderTextureMemoryless_UnityEngineVRTextureUsage_SystemBoolean__UnityEngineRenderTexture'.
Parameter Addresses: 0x00000007, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x00000008, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E
RenderTextureDesc msaaSamples must be 1, 2, 4, or 8.
Parameter name: desc.msaaSamples
Xiexe
tracked
i will fix it
techanon
Xiexe I presume this was fixed a long while back and can be marked complete.
Nestorboy
techanon This has in fact not been fixed and I just encountered the issue in SDK 3.7.0