HDK
|
#include <renderDelegate.h>
Misc public API | |
HDST_API HdStDrawItemsCachePtr | GetDrawItemsCache () const |
HDST_API Hgi * | GetHgi () |
static HDST_API bool | IsSupported () |
Additional Inherited Members | |
Protected Member Functions inherited from HdRenderDelegate | |
HD_API | HdRenderDelegate () |
This class must be derived from. More... | |
HD_API | HdRenderDelegate (HdRenderSettingsMap const &settingsMap) |
Allow derived classes to pass construction-time render settings. More... | |
HdRenderDelegate (const HdRenderDelegate &)=delete | |
HdRenderDelegate & | operator= (const HdRenderDelegate &)=delete |
HD_API void | _PopulateDefaultSettings (HdRenderSettingDescriptorList const &defaultSettings) |
Protected Attributes inherited from HdRenderDelegate | |
HdRenderSettingsMap | _settingsMap |
Render settings state. More... | |
unsigned int | _settingsVersion |
The Storm Render Delegate provides a rasterizer renderer to draw the scene. While it currently has some ties to GL, the goal is to use Hgi to allow it to be graphics API agnostic.
Definition at line 51 of file renderDelegate.h.
HDST_API HdStRenderDelegate::HdStRenderDelegate | ( | ) |
HDST_API HdStRenderDelegate::HdStRenderDelegate | ( | HdRenderSettingsMap const & | settingsMap | ) |
|
override |
|
overridevirtual |
Sync, Execute & Dispatch Hooks Notification point from the Engine to the delegate. This notification occurs after all Sync's have completed and before task execution.
This notification gives the Render Delegate a chance to update and move memory that the render may need.
For example, the render delegate might fill primvar buffers or texture memory.
Implements HdRenderDelegate.
|
overridevirtual |
Request to Allocate and Construct a new Bprim.
typeId | the type identifier of the prim to allocate |
sprimId | a unique identifier for the prim |
Implements HdRenderDelegate.
Request to Allocate and Construct a Bprim to use as a standin, if there if an error with another another Bprim of the same type. For example, if another prim references a non-exisiting Bprim, the fallback could be used.
typeId | the type identifier of the prim to allocate |
Implements HdRenderDelegate.
Request to Allocate and Construct an Sprim to use as a standin, if there if an error with another another Sprim of the same type. For example, if another prim references a non-exisiting Sprim, the fallback could be used.
typeId | the type identifier of the prim to allocate |
Implements HdRenderDelegate.
|
overridevirtual |
Instancer Factory Request to create a new instancer.
id | The unique identifier of this instancer. |
Implements HdRenderDelegate.
|
overridevirtual |
Renderpass Factory Request to create a new renderpass.
index | the render index to bind to the new renderpass. |
collection | the rprim collection to bind to the new renderpass. |
Implements HdRenderDelegate.
|
overridevirtual |
Request to create a new renderpass state. The default implementation creates an HdRenderPassState instance, but derived render delegates may instantiate their own state type.
shader | The render pass shader to use. If null, a new HdRenderPassShared will be created. |
Reimplemented from HdRenderDelegate.
|
overridevirtual |
Prim Factories Request to Allocate and Construct a new Rprim.
typeId | the type identifier of the prim to allocate |
rprimId | a unique identifier for the prim |
Implements HdRenderDelegate.
|
overridevirtual |
Request to Allocate and Construct a new Sprim.
typeId | the type identifier of the prim to allocate |
sprimId | a unique identifier for the prim |
Implements HdRenderDelegate.
Request to Destruct and deallocate the prim.
Implements HdRenderDelegate.
|
overridevirtual |
Implements HdRenderDelegate.
Request to Destruct and deallocate the prim.
Implements HdRenderDelegate.
Request to Destruct and deallocate the prim.
Implements HdRenderDelegate.
|
overridevirtual |
AOVs Returns a default AOV descriptor for the given named AOV, specifying things like preferred format.
Reimplemented from HdRenderDelegate.
HDST_API HdStDrawItemsCachePtr HdStRenderDelegate::GetDrawItemsCache | ( | ) | const |
|
overridevirtual |
Returns a list, in descending order of preference, that can be used to select among multiple material network implementations. The default list contains an empty token.
Reimplemented from HdRenderDelegate.
|
overridevirtual |
Returns an opaque handle to a render param, that in turn is passed to each prim created by the render delegate during sync processing. This avoids the need to store a global state pointer in each prim.
The typical lifetime of the renderParam would match that of the RenderDelegate, however the minimal lifetime is that of the Sync processing. The param maybe queried multiple times during sync.
A render delegate may return null for the param.
Reimplemented from HdRenderDelegate.
|
overridevirtual |
Get the backend-exported render setting descriptors.
Reimplemented from HdRenderDelegate.
|
overridevirtual |
Returns an open-format dictionary of render statistics
Reimplemented from HdRenderDelegate.
|
overridevirtual |
Returns a shared ptr to the resource registry of the current render delegate.
Implements HdRenderDelegate.
|
overridevirtual |
Returns the ordered list of shader source types that the render delegate supports.
Reimplemented from HdRenderDelegate.
|
overridevirtual |
Returns a list of typeId's of all supported Bprims by this render delegate.
Implements HdRenderDelegate.
|
overridevirtual |
Returns a list of typeId's of all supported Rprims by this render delegate.
Implements HdRenderDelegate.
|
overridevirtual |
Returns a list of typeId's of all supported Sprims by this render delegate.
Implements HdRenderDelegate.
|
overridevirtual |
Return true to indicate that the render delegate wants rprim primvars to be filtered by the scene delegate to reduce the amount of primvars that are send to the render delegate. For example the scene delegate may check the bound material primvar requirements and send only those to the render delegate. Return false to not apply primvar filtering in the scene delegate. Defaults to false.
Reimplemented from HdRenderDelegate.
|
static |
|
overridevirtual |
Set list of driver objects, such as a rendering context / devices. This is automatically called from HdRenderIndex when a HdDriver is provided during its construction. Default implementation does nothing.
Reimplemented from HdRenderDelegate.