示例#1
0
		public static DynamicTexture Create(Device device, Texture2DDescription desc)
		{
			DynamicTexture dt = new DynamicTexture();
			dt.Texture = new Texture2D(device, desc);
			dt.RTView = new RenderTargetView(device, dt.Texture);
			dt.SRView = new ShaderResourceView(device, dt.Texture);
			return dt;
		}
示例#2
0
        public static DynamicTexture Create(Device device, Texture2DDescription desc)
        {
            DynamicTexture dt = new DynamicTexture();

            dt.Texture = new Texture2D(device, desc);
            dt.RTView  = new RenderTargetView(device, dt.Texture);
            dt.SRView  = new ShaderResourceView(device, dt.Texture);
            return(dt);
        }