Esempio n. 1
0
 public Surface(int width, int height, Format format, Multisampling msaa)
 {
     _width         = width;
     _height        = height;
     _format        = format;
     _multisampling = msaa;
 }
Esempio n. 2
0
 public DepthStencilDesc(int width, int height, Format format, Multisampling sampling, bool readable)
 {
     Width       = width;
     Height      = height;
     this.Format = format;
     Sampling    = sampling;
     Readable    = readable;
 }
Esempio n. 3
0
 public TextureDesc()
 {
     MipLevels      = 1;
     Format         = Graphics.Format.UNKNOWN;
     SamplerDesc    = Multisampling.Disable;
     Usage          = ResourceUsage.Default;
     BindFlags      = Graphics.BindFlags.ShaderResource;
     CPUAccessFlags = CpuAccessFlags.None;
     Options        = ResourceOptionFlags.None;
 }
 public DepthStencil CreateDepthStencil(int width, int height, Format format, Multisampling multisampling)
 {
     return(CreateDepthStencil(new DepthStencilDesc(width, height, format, multisampling, false)));
 }
Esempio n. 5
0
 public DepthStencil(int width, int height, Format format, Multisampling msaa)
     : base(width, height, format, msaa)
 {
 }
Esempio n. 6
0
 public RenderTarget(int width, int height, Format format, Multisampling msaa)
     : base(width, height, format, msaa)
 {
 }