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