summaryrefslogtreecommitdiff
path: root/opengl-bindings/src/framebuffer.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-09-14 12:41:52 +0200
committerHampusM <hampus@hampusmat.com>2026-09-14 12:41:52 +0200
commita0a7516b51c088ce416714eace3ad320ec04a5fb (patch)
tree37336d6dcf78952ae2840442d8ba4e7b7fcd45e5 /opengl-bindings/src/framebuffer.rs
parenta8f7f5d12ea47175dfb361f9b3e7aa9520985d5c (diff)
feat(opengl-bindings): add tracing instrumentation to fns
Diffstat (limited to 'opengl-bindings/src/framebuffer.rs')
-rw-r--r--opengl-bindings/src/framebuffer.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/opengl-bindings/src/framebuffer.rs b/opengl-bindings/src/framebuffer.rs
index 6d16602..a758cc3 100644
--- a/opengl-bindings/src/framebuffer.rs
+++ b/opengl-bindings/src/framebuffer.rs
@@ -9,6 +9,7 @@ pub struct Framebuffer
impl Framebuffer
{
+ #[tracing::instrument(skip(current_context))]
#[must_use]
pub fn new(current_context: &MaybeCurrentContextWithFns) -> Self
{
@@ -22,6 +23,7 @@ impl Framebuffer
}
/// Attaches a texture object as a logical buffer of this framebuffer object.
+ #[tracing::instrument(skip(current_context))]
pub fn attach_texture(
&self,
current_context: &MaybeCurrentContextWithFns,
@@ -41,6 +43,7 @@ impl Framebuffer
}
/// Detaches the texture object at the specified attachment point.
+ #[tracing::instrument(skip(current_context))]
pub fn detach_texture(
&self,
current_context: &MaybeCurrentContextWithFns,
@@ -61,6 +64,7 @@ impl Framebuffer
/// framebuffer object.
///
/// If `buffer` is `None`, no color buffer will be written into.
+ #[tracing::instrument(skip(current_context))]
pub fn set_draw_buffer(
&self,
current_context: &MaybeCurrentContextWithFns,
@@ -77,6 +81,7 @@ impl Framebuffer
}
}
+ #[tracing::instrument(skip(current_context))]
pub fn delete(self, current_context: &MaybeCurrentContextWithFns)
{
unsafe {
@@ -101,6 +106,7 @@ impl Framebuffer
///
/// If `framebuffer` is `None`, breaks the existing binding of a framebuffer object to
/// the framebuffer target `target`.
+#[tracing::instrument(skip(current_context))]
pub fn bind(
current_context: &MaybeCurrentContextWithFns,
target: Target,