Struct OccluderSubviewUpdate
Parameters structure for passing to GPUResidentDrawer.UpdateInstanceOccluders.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.GPUDriven.Runtime.dll
Syntax
public struct OccluderSubviewUpdate
Constructors
OccluderSubviewUpdate(int)
Creates a new structure using the given parameters.
Declaration
public OccluderSubviewUpdate(int subviewIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | subviewIndex | The index of the subview within this occluder. |
Fields
depthOffset
The offset in pixels to the start of the depth data to read.
Declaration
public Vector2Int depthOffset
Field Value
| Type | Description |
|---|---|
| Vector2Int |
depthSliceIndex
The slice index of the depth data to read.
Declaration
public int depthSliceIndex
Field Value
| Type | Description |
|---|---|
| int |
gpuProjMatrix
The GPU projection matrix when rendering the depth buffer.
Declaration
public Matrix4x4 gpuProjMatrix
Field Value
| Type | Description |
|---|---|
| Matrix4x4 |
invViewMatrix
The transform from view space to world space when rendering the depth buffer.
Declaration
public Matrix4x4 invViewMatrix
Field Value
| Type | Description |
|---|---|
| Matrix4x4 |
subviewIndex
The subview index within this camera or light, used to identify these occluders for the occlusion test.
Declaration
public int subviewIndex
Field Value
| Type | Description |
|---|---|
| int |
viewMatrix
The transform from world space to view space when rendering the depth buffer.
Declaration
public Matrix4x4 viewMatrix
Field Value
| Type | Description |
|---|---|
| Matrix4x4 |
viewOffsetWorldSpace
An additional world space offset to apply when moving between world space and view space.
Declaration
public Vector3 viewOffsetWorldSpace
Field Value
| Type | Description |
|---|---|
| Vector3 |