HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdSt_SmoothNormalsComputationGPU Class Reference

#include <smoothNormals.h>

+ Inheritance diagram for HdSt_SmoothNormalsComputationGPU:

Public Member Functions

HDST_API HdSt_SmoothNormalsComputationGPU (HdSt_VertexAdjacencyBuilder const *vertexAdjacencyBuilder, TfToken const &srcName, TfToken const &dstName, HdType srcDataType, bool packed)
 
HDST_API void GetBufferSpecs (HdBufferSpecVector *specs) const override
 
HDST_API void Execute (HdBufferArrayRangeSharedPtr const &range, HdResourceRegistry *resourceRegistry) override
 Execute computation. More...
 
int GetNumOutputElements () const override
 
- Public Member Functions inherited from HdStComputation
virtual HDST_API ~HdStComputation ()
 
bool IsValid ()
 

Detailed Description

Smooth normal computation GPU.

Definition at line 81 of file smoothNormals.h.

Constructor & Destructor Documentation

HDST_API HdSt_SmoothNormalsComputationGPU::HdSt_SmoothNormalsComputationGPU ( HdSt_VertexAdjacencyBuilder const *  vertexAdjacencyBuilder,
TfToken const &  srcName,
TfToken const &  dstName,
HdType  srcDataType,
bool  packed 
)

Member Function Documentation

HDST_API void HdSt_SmoothNormalsComputationGPU::Execute ( HdBufferArrayRangeSharedPtr const &  range,
HdResourceRegistry resourceRegistry 
)
overridevirtual

Execute computation.

Implements HdStComputation.

HDST_API void HdSt_SmoothNormalsComputationGPU::GetBufferSpecs ( HdBufferSpecVector specs) const
overridevirtual

Add the buffer spec for this computation into given bufferspec vector. Caller has to allocate the destination buffer with respect to the BufferSpecs, and passes the range when registering the computation.

Implements HdStComputation.

int HdSt_SmoothNormalsComputationGPU::GetNumOutputElements ( ) const
inlineoverridevirtual

This computation doesn't generate buffer source (i.e. 2nd phase) This is a gpu computation, but no need to resize the destination since it belongs the same range as src buffer.

Implements HdStComputation.

Definition at line 102 of file smoothNormals.h.


The documentation for this class was generated from the following file: