9 #include <pxr/imaging/hd/renderBuffer.h>
18 void Finalize(PXR_NS::HdRenderParam *renderParam)
override;
20 bool Allocate(
const PXR_NS::GfVec3i &dimensions,
22 bool multiSampled)
override;
51 void Unmap()
override;
63 PXR_NS::VtValue
GetResource(
bool multiSampled =
false)
const override;
68 const PXR_NS::GfVec2i &
offset,
69 const PXR_NS::GfVec2i &dims,
74 void _Deallocate()
override;
76 unsigned int _width = 0u;
77 unsigned int _height = 0u;
78 PXR_NS::HdFormat _format = PXR_NS::HdFormatInvalid;
81 std::vector<uint8_t> _data;
82 PXR_NS::VtValue _resource;
83 mutable std::atomic_bool _resourceUsed =
false;
85 std::atomic_int _mapped = 0;
86 std::atomic_bool _converged =
false;
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
bool IsConverged() const override
void SetConverged(bool converged)
HdCyclesRenderBuffer(const PXR_NS::SdfPath &bprimId)
bool IsResourceUsed() const
unsigned int GetWidth() const override
bool IsMultiSampled() const override
bool Allocate(const PXR_NS::GfVec3i &dimensions, PXR_NS::HdFormat format, bool multiSampled) override
unsigned int GetHeight() const override
~HdCyclesRenderBuffer() override
bool IsMapped() const override
void SetResource(const PXR_NS::VtValue &resource)
PXR_NS::HdFormat GetFormat() const override
void Finalize(PXR_NS::HdRenderParam *renderParam) override
unsigned int GetDepth() const override
void WritePixels(const float *pixels, const PXR_NS::GfVec2i &offset, const PXR_NS::GfVec2i &dims, int channels, bool isId=false)
PXR_NS::VtValue GetResource(bool multiSampled=false) const override
#define HDCYCLES_NAMESPACE_CLOSE_SCOPE
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset