We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e5f38 commit eb3cd24Copy full SHA for eb3cd24
src/graphics/shader.rs
@@ -132,13 +132,18 @@ use {
132
/// [`Text`]: crate::graphics::Text
133
/// [`RenderTexture`]: crate::graphics::RenderTexture
134
///
135
-#[derive(Debug)]
136
#[repr(C)]
137
pub struct Shader<'texture> {
138
_opaque: [u8; 0],
139
_texture: PhantomData<&'texture Texture>,
140
}
141
+impl std::fmt::Debug for Shader<'_> {
142
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
143
+ write!(f, "Shader(<opaque> @ {self:p})")
144
+ }
145
+}
146
+
147
impl<'texture> Shader<'texture> {
148
fn new() -> SfResult<FBox<Self>> {
149
FBox::new(unsafe { ffi::sfShader_new() }.cast()).into_sf_result()
0 commit comments