File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88#include < igl/FramebufferWrapper.h>
99
10+ #include < igl/Macros.h>
11+
1012namespace igl {
1113
1214FramebufferWrapper::FramebufferWrapper (std::shared_ptr<IFramebuffer> framebuffer) :
1315 framebuffer_ (std::move(framebuffer)) {}
1416
1517base::IAttachmentInterop* IGL_NULLABLE FramebufferWrapper::getColorAttachment (size_t index) const {
18+ IGL_PROFILER_FUNCTION ();
1619 if (!framebuffer_) {
1720 return nullptr ;
1821 }
1922 return framebuffer_->getColorAttachment (index).get ();
2023}
2124
2225base::IAttachmentInterop* IGL_NULLABLE FramebufferWrapper::getDepthAttachment () const {
26+ IGL_PROFILER_FUNCTION ();
2327 if (!framebuffer_) {
2428 return nullptr ;
2529 }
@@ -33,13 +37,15 @@ void* IGL_NULLABLE FramebufferWrapper::getNativeFramebuffer() const {
3337
3438std::shared_ptr<ITexture> FramebufferWrapper::getColorAttachmentTexture (
3539 size_t index) const noexcept {
40+ IGL_PROFILER_FUNCTION ();
3641 if (!framebuffer_) {
3742 return nullptr ;
3843 }
3944 return framebuffer_->getColorAttachment (index);
4045}
4146
4247std::shared_ptr<ITexture> FramebufferWrapper::getDepthAttachmentTexture () const noexcept {
48+ IGL_PROFILER_FUNCTION ();
4349 if (!framebuffer_) {
4450 return nullptr ;
4551 }
You can’t perform that action at this time.
0 commit comments