Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsRenderRequestSupported<RequestData>(Camera, RequestData)

Implement this method in a custom Scriptable Render Pipeline (SRP) to specify if a particular combination of camera and render request is supported.
Read time 1 minuteLast updated 6 days ago

Definition

IsRenderRequestSupported<T>(Camera, T)

protected virtual bool IsRenderRequestSupported<RequestData>(Camera camera, RequestData data)

Parameters

camera

The camera to verify if it supports this render request.

data

T
The render request to verify if the render pipeline supports it.

Returns

Type

Description

bool
true
if the combination of the camera and the render pipeline supports the
RequestData
type.

Remarks

In a custom Scriptable Render Pipeline (SRP), you need to implement this method to specify supported
RequestData
types. RenderPipeline.SupportsRenderRequest calls this method.