Бранимир Караџић 4 年 前
コミット
69fb21f50e
7 ファイル変更11 行追加10 行削除
  1. 1 1
      bindings/bf/bgfx.bf
  2. 1 1
      bindings/cs/bgfx.cs
  3. 2 2
      bindings/d/funcs.d
  4. 2 1
      bindings/d/types.d
  5. 1 1
      include/bgfx/bgfx.h
  6. 2 2
      include/bgfx/c99/bgfx.h
  7. 2 2
      scripts/bgfx.idl

+ 1 - 1
bindings/bf/bgfx.bf

@@ -3219,7 +3219,7 @@ public static class bgfx
 	/// mip level.
 	/// mip level.
 	/// </summary>
 	/// </summary>
 	///
 	///
-	/// <param name="_num">Number of attachements.</param>
+	/// <param name="_num">Number of attachments.</param>
 	/// <param name="_attachment">Attachment texture info. See: `bgfx::Attachment`.</param>
 	/// <param name="_attachment">Attachment texture info. See: `bgfx::Attachment`.</param>
 	/// <param name="_destroyTexture">If true, textures will be destroyed when frame buffer is destroyed.</param>
 	/// <param name="_destroyTexture">If true, textures will be destroyed when frame buffer is destroyed.</param>
 	///
 	///

+ 1 - 1
bindings/cs/bgfx.cs

@@ -3175,7 +3175,7 @@ public static partial class bgfx
 	/// mip level.
 	/// mip level.
 	/// </summary>
 	/// </summary>
 	///
 	///
-	/// <param name="_num">Number of attachements.</param>
+	/// <param name="_num">Number of attachments.</param>
 	/// <param name="_attachment">Attachment texture info. See: `bgfx::Attachment`.</param>
 	/// <param name="_attachment">Attachment texture info. See: `bgfx::Attachment`.</param>
 	/// <param name="_destroyTexture">If true, textures will be destroyed when frame buffer is destroyed.</param>
 	/// <param name="_destroyTexture">If true, textures will be destroyed when frame buffer is destroyed.</param>
 	///
 	///

+ 2 - 2
bindings/d/funcs.d

@@ -956,7 +956,7 @@ version(BindBgfx_Static)
 	 * Create MRT frame buffer from texture handles with specific layer and
 	 * Create MRT frame buffer from texture handles with specific layer and
 	 * mip level.
 	 * mip level.
 	 * Params:
 	 * Params:
-	 * _num = Number of attachements.
+	 * _num = Number of attachments.
 	 * _attachment = Attachment texture info. See: `bgfx::Attachment`.
 	 * _attachment = Attachment texture info. See: `bgfx::Attachment`.
 	 * _destroyTexture = If true, textures will be destroyed when
 	 * _destroyTexture = If true, textures will be destroyed when
 	 * frame buffer is destroyed.
 	 * frame buffer is destroyed.
@@ -3171,7 +3171,7 @@ else
 		 * Create MRT frame buffer from texture handles with specific layer and
 		 * Create MRT frame buffer from texture handles with specific layer and
 		 * mip level.
 		 * mip level.
 		 * Params:
 		 * Params:
-		 * _num = Number of attachements.
+		 * _num = Number of attachments.
 		 * _attachment = Attachment texture info. See: `bgfx::Attachment`.
 		 * _attachment = Attachment texture info. See: `bgfx::Attachment`.
 		 * _destroyTexture = If true, textures will be destroyed when
 		 * _destroyTexture = If true, textures will be destroyed when
 		 * frame buffer is destroyed.
 		 * frame buffer is destroyed.

+ 2 - 1
bindings/d/types.d

@@ -941,7 +941,7 @@ struct bgfx_uniform_info_t
 /// Frame buffer texture attachment info.
 /// Frame buffer texture attachment info.
 struct bgfx_attachment_t
 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.
 	bgfx_texture_handle_t handle; /// Render target texture handle.
 	ushort mip; /// Mip level.
 	ushort mip; /// Mip level.
 	ushort layer; /// Cubemap side or depth layer/slice to use.
 	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_buffer_handle_t { ushort idx; }
 
 
 struct bgfx_vertex_layout_handle_t { ushort idx; }
 struct bgfx_vertex_layout_handle_t { ushort idx; }
+

+ 1 - 1
include/bgfx/bgfx.h

@@ -906,7 +906,7 @@ namespace bgfx
 			, uint8_t _resolve = BGFX_RESOLVE_AUTO_GEN_MIPS
 			, 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.
 		TextureHandle handle; //!< Render target texture handle.
 		uint16_t mip;         //!< Mip level.
 		uint16_t mip;         //!< Mip level.
 		uint16_t layer;       //!< Cubemap side or depth layer/slice to use.
 		uint16_t layer;       //!< Cubemap side or depth layer/slice to use.

+ 2 - 2
include/bgfx/c99/bgfx.h

@@ -781,7 +781,7 @@ typedef struct bgfx_uniform_info_s
  */
  */
 typedef struct bgfx_attachment_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.            */
     bgfx_texture_handle_t handle;            /** Render target texture handle.            */
     uint16_t             mip;                /** Mip level.                               */
     uint16_t             mip;                /** Mip level.                               */
     uint16_t             layer;              /** Cubemap side or depth layer/slice to use. */
     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
  * Create MRT frame buffer from texture handles with specific layer and
  * mip level.
  * 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] _attachment Attachment texture info. See: `bgfx::Attachment`.
  * @param[in] _destroyTexture If true, textures will be destroyed when
  * @param[in] _destroyTexture If true, textures will be destroyed when
  *  frame buffer is destroyed.
  *  frame buffer is destroyed.

+ 2 - 2
scripts/bgfx.idl

@@ -856,7 +856,7 @@ struct.UniformInfo
 
 
 --- Frame buffer texture attachment info.
 --- Frame buffer texture attachment info.
 struct.Attachment { shortname }
 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.
 	.handle    "TextureHandle" --- Render target texture handle.
 	.mip       "uint16_t"      --- Mip level.
 	.mip       "uint16_t"      --- Mip level.
 	.layer     "uint16_t"      --- Cubemap side or depth layer/slice to use.
 	.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.
 --- mip level.
 func.createFrameBuffer { cname = "create_frame_buffer_from_attachment" }
 func.createFrameBuffer { cname = "create_frame_buffer_from_attachment" }
 	"FrameBufferHandle"                 --- Frame buffer handle.
 	"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`.
 	.attachment     "const Attachment*" --- Attachment texture info. See: `bgfx::Attachment`.
 	.destroyTexture "bool"              --- If true, textures will be destroyed when
 	.destroyTexture "bool"              --- If true, textures will be destroyed when
 	 { default = false }                --- frame buffer is destroyed.
 	 { default = false }                --- frame buffer is destroyed.