[]
Creates a ShaderResourceView for accessing resource data.
public static ShaderResourceView Create(Device device, Resource resource)
Public Shared Function Create(device As Device, resource As Resource) As ShaderResourceView
| 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)
Public Shared Function Create(device As Device, resource As Resource, description As ShaderResourceViewDescription) As ShaderResourceView
| 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 |