18#ifndef PXR_IMAGING_HD_RENDERER_CREATE_ARGS_SCHEMA_H
19#define PXR_IMAGING_HD_RENDERER_CREATE_ARGS_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
24#include "pxr/imaging/hd/schemaTypeDefs.h"
26#include "pxr/imaging/hd/schema.h"
31PXR_NAMESPACE_OPEN_SCOPE
36#define HD_RENDERER_CREATE_ARGS_SCHEMA_TOKENS \
37 (rendererCreateArgs) \
43 HD_RENDERER_CREATE_ARGS_SCHEMA_TOKENS);
68 const HdContainerDataSourceHandle &fromParentContainer);
132 static HdContainerDataSourceHandle
134 const HdBoolDataSourceHandle &gpuEnabled,
135 const HdContainerDataSourceHandle &drivers
149 const HdBoolDataSourceHandle &gpuEnabled);
152 const HdContainerDataSourceHandle &drivers);
156 HdContainerDataSourceHandle
Build();
159 HdBoolDataSourceHandle _gpuEnabled;
160 HdContainerDataSourceHandle _drivers;
167PXR_NAMESPACE_CLOSE_SCOPE
Template class for a schema backed by a container whose children have arbitrary names but an expected...
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Arguments to HdRendererPlugin::IsSupported and CreateRenderer.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdBoolDataSourceHandle &gpuEnabled, const HdContainerDataSourceHandle &drivers)
static HD_API const HdDataSourceLocator & GetDriversLocator()
Prim-level relative data source locator to locate drivers.
HD_API HdBoolDataSourceHandle GetGpuEnabled() const
Is a GPU available.
HD_API HdSampledDataSourceContainerSchema GetDrivers() const
Drivers such as Hgi that renderer can use.
static HD_API const HdDataSourceLocator & GetGpuEnabledLocator()
Prim-level relative data source locator to locate gpuEnabled.
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
static HD_API HdRendererCreateArgsSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "rendererCreateArgs" from the ...
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
Schema classes represent a structured view of the inherently unstructured container data source passe...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.