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

#include <flatNormals.h>

+ Inheritance diagram for HdSt_FlatNormalsComputationGPU:

Public Member Functions

HDST_API HdSt_FlatNormalsComputationGPU (HdBufferArrayRangeSharedPtr const &topologyRange, HdBufferArrayRangeSharedPtr const &vertexRange, int numFaces, TfToken const &srcName, TfToken const &dstName, HdType srcDataType, bool packed)
 Constructor. More...
 
virtual HDST_API void GetBufferSpecs (HdBufferSpecVector *specs) const override
 
virtual HDST_API void Execute (HdBufferArrayRangeSharedPtr const &range, HdResourceRegistry *resourceRegistry) override
 Execute computation. More...
 
virtual int GetNumOutputElements () const override
 
- Public Member Functions inherited from HdComputation
virtual HD_API ~HdComputation ()
 
bool IsValid ()
 

Detailed Description

flat normal computation GPU

Definition at line 42 of file flatNormals.h.

Constructor & Destructor Documentation

HDST_API HdSt_FlatNormalsComputationGPU::HdSt_FlatNormalsComputationGPU ( HdBufferArrayRangeSharedPtr const topologyRange,
HdBufferArrayRangeSharedPtr const vertexRange,
int  numFaces,
TfToken const srcName,
TfToken const dstName,
HdType  srcDataType,
bool  packed 
)

Constructor.

Member Function Documentation

virtual HDST_API void HdSt_FlatNormalsComputationGPU::Execute ( HdBufferArrayRangeSharedPtr const range,
HdResourceRegistry resourceRegistry 
)
overridevirtual

Execute computation.

Implements HdComputation.

virtual HDST_API void HdSt_FlatNormalsComputationGPU::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 HdComputation.

virtual int HdSt_FlatNormalsComputationGPU::GetNumOutputElements ( ) const
overridevirtual

Returns the size of its destination buffer (located by range argument of Execute()). This function will be called after all HdBufferSources have been resolved and commited, so it can use the result of those buffer source results. Returning 0 means it doesn't need to resize.

Implements HdComputation.


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