Method AddRasterRenderPass
AddRasterRenderPass<PassData>(string, out PassData, string, int)
Add a new Raster Render Pass to the Render Graph. Raster passes can execute rasterization workloads but cannot do other GPU work like copies or compute.
Declaration
public IRasterRenderGraphBuilder AddRasterRenderPass<PassData>(string passName, out PassData passData, string file = "", int line = 0) where PassData : class, new()
Parameters
Type | Name | Description |
---|---|---|
string | passName | Name of the new Render Pass (this is also be used to generate a GPU profiling marker). |
PassData | passData | Instance of PassData that is passed to the render function and you must fill. |
string | file | File name of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it. |
int | line | File line of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it. |
Returns
Type | Description |
---|---|
IRasterRenderGraphBuilder | A new instance of a IRasterRenderGraphBuilder used to setup the new Rasterization Render Pass. |
Type Parameters
Name | Description |
---|---|
PassData | Type of the class to use to provide data to the Render Pass. |
AddRasterRenderPass<PassData>(string, out PassData, ProfilingSampler, string, int)
Add a new Raster Render Pass to the Render Graph. Raster passes can execute rasterization workloads but cannot do other GPU work like copies or compute.
Declaration
public IRasterRenderGraphBuilder AddRasterRenderPass<PassData>(string passName, out PassData passData, ProfilingSampler sampler, string file = "", int line = 0) where PassData : class, new()
Parameters
Type | Name | Description |
---|---|---|
string | passName | Name of the new Render Pass (this is also be used to generate a GPU profiling marker). |
PassData | passData | Instance of PassData that is passed to the render function and you must fill. |
ProfilingSampler | sampler | Profiling sampler used around the pass. |
string | file | File name of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it. |
int | line | File line of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it. |
Returns
Type | Description |
---|---|
IRasterRenderGraphBuilder | A new instance of a IRasterRenderGraphBuilder used to setup the new Rasterization Render Pass. |
Type Parameters
Name | Description |
---|---|
PassData | Type of the class to use to provide data to the Render Pass. |