예제 #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);
        }