Esempio n. 1
0
        public static ShaderResourceView Create(
            GraphicsDevice graphicsDevice,
            Texture texture)
        {
            var result = new ShaderResourceView(graphicsDevice, 1);

            result.PlatformSetTexture(0, texture);

            return(result);
        }
Esempio n. 2
0
        public static ShaderResourceView Create(
            GraphicsDevice graphicsDevice,
            Texture[] textures)
        {
            var result = new ShaderResourceView(graphicsDevice, textures.Length);

            for (var i = 0; i < textures.Length; i++)
            {
                result.PlatformSetTexture(i, textures[i]);
            }

            return(result);
        }