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; }
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); }