12 : _renderParam(renderParam)
16 void HdCyclesOutputDriver::write_render_tile(
const Tile &
tile)
18 update_render_tile(
tile);
21 for (
const HdRenderPassAovBinding &aovBinding : _renderParam->
GetAovBindings()) {
23 renderBuffer->SetConverged(
true);
28 bool HdCyclesOutputDriver::update_render_tile(
const Tile &
tile)
30 std::vector<float> pixels;
32 for (
const HdRenderPassAovBinding &aovBinding : _renderParam->
GetAovBindings()) {
38 const HdFormat
format = renderBuffer->GetFormat();
39 if (
format == HdFormatInvalid) {
46 tile.size.
y == renderBuffer->GetHeight() &&
47 (
format >= HdFormatFloat32 &&
format <= HdFormatFloat32Vec4)) {
48 float *
const data =
static_cast<float *
>(renderBuffer->Map());
49 TF_VERIFY(
tile.get_pass_pixels(aovBinding.aovName.GetString(),
channels,
data));
50 renderBuffer->Unmap();
54 if (
tile.get_pass_pixels(aovBinding.aovName.GetString(),
channels, pixels.data())) {
55 const bool isId = aovBinding.aovName == HdAovTokens->primId ||
56 aovBinding.aovName == HdAovTokens->elementId ||
57 aovBinding.aovName == HdAovTokens->instanceId;
59 renderBuffer->WritePixels(pixels.data(),
67 if (aovBinding.aovName != HdAovTokens->elementId) {
68 TF_RUNTIME_ERROR(
"Could not find pass for AOV '%s'", aovBinding.aovName.GetText());
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a producing a negative Combine Generate a color from its and blue channels(Deprecated)") DefNode(ShaderNode
HdCyclesOutputDriver(HdCyclesSession *renderParam)
PXR_NS::HdRenderPassAovBinding GetDisplayAovBinding() const
const PXR_NS::HdRenderPassAovBindingVector & GetAovBindings() const
#define HDCYCLES_NAMESPACE_CLOSE_SCOPE
ccl_global const KernelWorkTile * tile