24 #ifndef PXR_IMAGING_HD_FLAT_NORMALS_H 25 #define PXR_IMAGING_HD_FLAT_NORMALS_H 28 #include "pxr/imaging/hd/api.h" 29 #include "pxr/imaging/hd/version.h" 30 #include "pxr/imaging/hd/bufferSource.h" 31 #include "pxr/imaging/hd/computation.h" 32 #include "pxr/imaging/hd/types.h" 38 PXR_NAMESPACE_OPEN_SCOPE
49 class Hd_FlatNormals final {
72 Hd_FlatNormals() =
delete;
73 ~Hd_FlatNormals() =
delete;
84 HdBufferSourceSharedPtr
const &points,
90 virtual void GetBufferSpecs(HdBufferSpecVector *specs)
const override;
92 virtual bool Resolve()
override;
102 HdBufferSourceSharedPtr
const _points;
107 PXR_NAMESPACE_CLOSE_SCOPE
109 #endif // PXR_IMAGING_HD_FLAT_NORMALS_H virtual HD_API TfToken const & GetName() const override
Return the name of this buffer source.
virtual void GetBufferSpecs(HdBufferSpecVector *specs) const =0
Add the buffer spec for this buffer source into given bufferspec vector.
Basic type for a vector of 3 float components.
Token for efficient comparison, assignment, and hashing of known strings.
virtual bool _CheckValid() const =0
Checks the validity of the source buffer.
Basic type for a vector of 3 double components.
Topology data for meshes.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
virtual bool Resolve()=0
Prepare the access of GetData().
A abstract base class for cpu computation followed by buffer transfer to the GPU.