diff --git a/bindings/bf/bgfx.bf b/bindings/bf/bgfx.bf
index d29c78f1e..3e1f5575f 100644
--- a/bindings/bf/bgfx.bf
+++ b/bindings/bf/bgfx.bf
@@ -3219,7 +3219,7 @@ public static class bgfx
/// mip level.
///
///
- /// Number of attachements.
+ /// Number of attachments.
/// Attachment texture info. See: `bgfx::Attachment`.
/// If true, textures will be destroyed when frame buffer is destroyed.
///
diff --git a/bindings/cs/bgfx.cs b/bindings/cs/bgfx.cs
index efd5c3522..ee490566c 100644
--- a/bindings/cs/bgfx.cs
+++ b/bindings/cs/bgfx.cs
@@ -3175,7 +3175,7 @@ public static partial class bgfx
/// mip level.
///
///
- /// Number of attachements.
+ /// Number of attachments.
/// Attachment texture info. See: `bgfx::Attachment`.
/// If true, textures will be destroyed when frame buffer is destroyed.
///
diff --git a/bindings/d/funcs.d b/bindings/d/funcs.d
index 40da13ff9..f3ea7bc8f 100644
--- a/bindings/d/funcs.d
+++ b/bindings/d/funcs.d
@@ -956,7 +956,7 @@ version(BindBgfx_Static)
* Create MRT frame buffer from texture handles with specific layer and
* mip level.
* Params:
- * _num = Number of attachements.
+ * _num = Number of attachments.
* _attachment = Attachment texture info. See: `bgfx::Attachment`.
* _destroyTexture = If true, textures will be destroyed when
* frame buffer is destroyed.
@@ -3171,7 +3171,7 @@ else
* Create MRT frame buffer from texture handles with specific layer and
* mip level.
* Params:
- * _num = Number of attachements.
+ * _num = Number of attachments.
* _attachment = Attachment texture info. See: `bgfx::Attachment`.
* _destroyTexture = If true, textures will be destroyed when
* frame buffer is destroyed.
diff --git a/bindings/d/types.d b/bindings/d/types.d
index af6a66b55..18c35939f 100644
--- a/bindings/d/types.d
+++ b/bindings/d/types.d
@@ -941,7 +941,7 @@ struct bgfx_uniform_info_t
/// Frame buffer texture attachment info.
struct bgfx_attachment_t
{
- bgfx_access_t access; /// Attachement access. See `Access::Enum`.
+ bgfx_access_t access; /// Attachment access. See `Access::Enum`.
bgfx_texture_handle_t handle; /// Render target texture handle.
ushort mip; /// Mip level.
ushort layer; /// Cubemap side or depth layer/slice to use.
@@ -1062,3 +1062,4 @@ struct bgfx_uniform_handle_t { ushort idx; }
struct bgfx_vertex_buffer_handle_t { ushort idx; }
struct bgfx_vertex_layout_handle_t { ushort idx; }
+
diff --git a/include/bgfx/bgfx.h b/include/bgfx/bgfx.h
index 4134f1445..78a64b351 100644
--- a/include/bgfx/bgfx.h
+++ b/include/bgfx/bgfx.h
@@ -906,7 +906,7 @@ namespace bgfx
, uint8_t _resolve = BGFX_RESOLVE_AUTO_GEN_MIPS
);
- Access::Enum access; //!< Attachement access. See `Access::Enum`.
+ Access::Enum access; //!< Attachment access. See `Access::Enum`.
TextureHandle handle; //!< Render target texture handle.
uint16_t mip; //!< Mip level.
uint16_t layer; //!< Cubemap side or depth layer/slice to use.
diff --git a/include/bgfx/c99/bgfx.h b/include/bgfx/c99/bgfx.h
index db61b3a75..6a4e489ad 100644
--- a/include/bgfx/c99/bgfx.h
+++ b/include/bgfx/c99/bgfx.h
@@ -781,7 +781,7 @@ typedef struct bgfx_uniform_info_s
*/
typedef struct bgfx_attachment_s
{
- bgfx_access_t access; /** Attachement access. See `Access::Enum`. */
+ bgfx_access_t access; /** Attachment access. See `Access::Enum`. */
bgfx_texture_handle_t handle; /** Render target texture handle. */
uint16_t mip; /** Mip level. */
uint16_t layer; /** Cubemap side or depth layer/slice to use. */
@@ -2002,7 +2002,7 @@ BGFX_C_API bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_from_handles(uint
* Create MRT frame buffer from texture handles with specific layer and
* mip level.
*
- * @param[in] _num Number of attachements.
+ * @param[in] _num Number of attachments.
* @param[in] _attachment Attachment texture info. See: `bgfx::Attachment`.
* @param[in] _destroyTexture If true, textures will be destroyed when
* frame buffer is destroyed.
diff --git a/scripts/bgfx.idl b/scripts/bgfx.idl
index 274ca01a9..26f8a7fa7 100644
--- a/scripts/bgfx.idl
+++ b/scripts/bgfx.idl
@@ -856,7 +856,7 @@ struct.UniformInfo
--- Frame buffer texture attachment info.
struct.Attachment { shortname }
- .access "Access::Enum" --- Attachement access. See `Access::Enum`.
+ .access "Access::Enum" --- Attachment access. See `Access::Enum`.
.handle "TextureHandle" --- Render target texture handle.
.mip "uint16_t" --- Mip level.
.layer "uint16_t" --- Cubemap side or depth layer/slice to use.
@@ -1843,7 +1843,7 @@ func.createFrameBuffer { cname = "create_frame_buffer_from_handles" }
--- mip level.
func.createFrameBuffer { cname = "create_frame_buffer_from_attachment" }
"FrameBufferHandle" --- Frame buffer handle.
- .num "uint8_t" --- Number of attachements.
+ .num "uint8_t" --- Number of attachments.
.attachment "const Attachment*" --- Attachment texture info. See: `bgfx::Attachment`.
.destroyTexture "bool" --- If true, textures will be destroyed when
{ default = false } --- frame buffer is destroyed.