public override void InitSlots() { base.InitSlots(); for (ushort i = 0; i < Capacity; i++) { var texture = RTExtensions.CreateRTexture(new Vector2(TileSize, TileSize), 0, Format, FilterMode, WrapMode, Mipmaps, AnisoLevel, EnableRandomWrite); var slot = new GPUSlot(this, texture); AddSlot(i, slot); } }
protected override void Awake() { base.Awake(); int tileSize = GetTileSize(); int capacity = GetCapacity(); for (int i = 0; i < capacity; i++) { RenderTexture texture = new RenderTexture(tileSize, tileSize, 0, m_internalFormat, m_readWrite); texture.filterMode = m_filterMode; texture.wrapMode = m_wrapMode; texture.useMipMap = m_mipmaps; texture.anisoLevel = m_ansio; texture.enableRandomWrite = m_enableRandomWrite; GPUSlot slot = new GPUSlot(this, texture); AddSlot(i, slot); } }
protected override void Awake() { base.Awake(); int tileSize = GetTileSize(); int capacity = GetCapacity(); for(int i = 0; i < capacity; i++) { RenderTexture texture = new RenderTexture(tileSize, tileSize, 0, m_internalFormat, m_readWrite); texture.filterMode = m_filterMode; texture.wrapMode = m_wrapMode; texture.useMipMap = m_mipmaps; texture.anisoLevel = m_ansio; texture.enableRandomWrite = m_enableRandomWrite; GPUSlot slot = new GPUSlot(this, texture); AddSlot(i, slot); } }