[]
Creates a DepthStencilView for accessing resource data.
public static DepthStencilView Create(Device device, Resource resource)
| Type | Name | Description |
|---|---|---|
| Device | device | The device to use when creating this DepthStencilView. |
| Resource | resource | The resource that represents the render-target surface. This surface must have been created with the DepthStencil flag. |
| Type | Description |
|---|---|
| DepthStencilView |
Creates a DepthStencilView for accessing resource data.
public static DepthStencilView Create(Device device, Resource resource, DepthStencilViewDescription description)
| Type | Name | Description |
|---|---|---|
| Device | device | The device to use when creating this DepthStencilView. |
| Resource | resource | The resource that represents the render-target surface. This surface must have been created with the DepthStencil flag. |
| DepthStencilViewDescription | description | A structure describing the DepthStencilView to be created. |
| Type | Description |
|---|---|
| DepthStencilView |