/// <summary>
 /// Initializes a new instance of the <see cref="D3D11UnorderedAccessViewDesc"/> struct.
 /// </summary>
 /// <param name="buffer">A buffer.</param>
 /// <param name="format">The viewing format.</param>
 /// <param name="firstElement">The number of bytes between the beginning of the buffer and the first element to access.</param>
 /// <param name="numElements">The total number of elements in the view.</param>
 public D3D11UnorderedAccessViewDesc(
     D3D11Buffer buffer,
     DxgiFormat format,
     uint firstElement,
     uint numElements)
     : this(buffer, format, firstElement, numElements, D3D11BufferUavOptions.None)
 {
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="D3D11ShaderResourceViewDesc"/> struct.
 /// </summary>
 /// <param name="buffer">A buffer.</param>
 /// <param name="format">The viewing format.</param>
 /// <param name="firstElement">The number of bytes between the beginning of the buffer and the first element to access.</param>
 /// <param name="numElements">The total number of elements in the view.</param>
 public D3D11ShaderResourceViewDesc(
     D3D11Buffer buffer,
     DxgiFormat format,
     uint firstElement,
     uint numElements)
     : this(buffer, format, firstElement, numElements, D3D11BufferExSrvOptions.None)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="D3D11Viewport"/> struct.
 /// </summary>
 /// <param name="buffer">A buffer.</param>
 /// <param name="view">The render-target view.</param>
 /// <param name="topLeftX">The X position of the left hand side of the viewport.</param>
 public D3D11Viewport(D3D11Buffer buffer, D3D11RenderTargetView view, float topLeftX)
     : this(buffer, view, topLeftX, 0.0f, 1.0f)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="D3D11Viewport"/> struct.
 /// </summary>
 /// <param name="buffer">A buffer.</param>
 /// <param name="view">The render-target view.</param>
 public D3D11Viewport(D3D11Buffer buffer, D3D11RenderTargetView view)
     : this(buffer, view, 0.0f, 0.0f, 1.0f)
 {
 }