Exemplo n.º 1
0
        /// <summary>
        /// Creates a texture.
        /// </summary>
        /// <param name="fmt">The texture type.</param>
        /// <param name="textureFmt">Texture data type, may not be matrix.</param>
        /// <param name="register">Texture register id.</param>
        /// <returns></returns>
        public Operand CreateTexture(PinFormat fmt, PinFormat textureFmt, uint register)
        {
            int name = GenerateNextUniqueName();

            compiler.RegisterTexture(name, fmt, textureFmt, register);

            return(new Operand(fmt, name, textureFmt));
        }