Converted if-then-else to Switch-case for TextureAllocTrigger in OnInput/OutputSizeChanged for clarity.