@@ -22,7 +22,7 @@ public static unsafe partial class Extensions
2222 /// </summary>
2323 [ NativeName ( NativeNameType . Func , "Initialize" ) ]
2424 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
25- public static HResult Initialize ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "mdata" ) ] [ NativeName ( NativeNameType . Type , "const TexMetadata&" ) ] TexMetadata * mdata , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
25+ public static HResult Initialize ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "mdata" ) ] [ NativeName ( NativeNameType . Type , "TexMetadata const &" ) ] TexMetadata * mdata , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
2626 {
2727 HResult ret = DirectXTex . InitializeNative ( img , mdata , flags ) ;
2828 return ret ;
@@ -33,7 +33,7 @@ public static HResult Initialize(this ScratchImage img, [NativeName(NativeNameTy
3333 /// </summary>
3434 [ NativeName ( NativeNameType . Func , "Initialize" ) ]
3535 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
36- public static HResult Initialize ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "mdata" ) ] [ NativeName ( NativeNameType . Type , "const TexMetadata&" ) ] ref TexMetadata mdata , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
36+ public static HResult Initialize ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "mdata" ) ] [ NativeName ( NativeNameType . Type , "TexMetadata const &" ) ] ref TexMetadata mdata , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
3737 {
3838 fixed ( TexMetadata * pmdata = & mdata )
3939 {
@@ -91,7 +91,7 @@ public static HResult InitializeCube(this ScratchImage img, [NativeName(NativeNa
9191 /// </summary>
9292 [ NativeName ( NativeNameType . Func , "InitializeFromImage" ) ]
9393 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
94- public static HResult InitializeFromImage ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "srcImage" ) ] [ NativeName ( NativeNameType . Type , "const Image" ) ] Image srcImage , [ NativeName ( NativeNameType . Param , "allow1D" ) ] [ NativeName ( NativeNameType . Type , "bool" ) ] bool allow1D , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
94+ public static HResult InitializeFromImage ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "srcImage" ) ] [ NativeName ( NativeNameType . Type , "Image const " ) ] Image srcImage , [ NativeName ( NativeNameType . Param , "allow1D" ) ] [ NativeName ( NativeNameType . Type , "bool" ) ] bool allow1D , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
9595 {
9696 HResult ret = DirectXTex . InitializeFromImageNative ( img , srcImage , allow1D ? ( byte ) 1 : ( byte ) 0 , flags ) ;
9797 return ret ;
@@ -102,7 +102,7 @@ public static HResult InitializeFromImage(this ScratchImage img, [NativeName(Nat
102102 /// </summary>
103103 [ NativeName ( NativeNameType . Func , "InitializeArrayFromImages" ) ]
104104 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
105- public static HResult InitializeArrayFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "const Image *" ) ] Image * images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "allow1D" ) ] [ NativeName ( NativeNameType . Type , "bool" ) ] bool allow1D , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
105+ public static HResult InitializeArrayFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "Image const *" ) ] Image * images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "allow1D" ) ] [ NativeName ( NativeNameType . Type , "bool" ) ] bool allow1D , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
106106 {
107107 HResult ret = DirectXTex . InitializeArrayFromImagesNative ( img , images , nImages , allow1D ? ( byte ) 1 : ( byte ) 0 , flags ) ;
108108 return ret ;
@@ -113,7 +113,7 @@ public static HResult InitializeArrayFromImages(this ScratchImage img, [NativeNa
113113 /// </summary>
114114 [ NativeName ( NativeNameType . Func , "InitializeArrayFromImages" ) ]
115115 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
116- public static HResult InitializeArrayFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "const Image *" ) ] ref Image images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "allow1D" ) ] [ NativeName ( NativeNameType . Type , "bool" ) ] bool allow1D , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
116+ public static HResult InitializeArrayFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "Image const *" ) ] ref Image images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "allow1D" ) ] [ NativeName ( NativeNameType . Type , "bool" ) ] bool allow1D , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
117117 {
118118 fixed ( Image * pimages = & images )
119119 {
@@ -127,7 +127,7 @@ public static HResult InitializeArrayFromImages(this ScratchImage img, [NativeNa
127127 /// </summary>
128128 [ NativeName ( NativeNameType . Func , "InitializeCubeFromImages" ) ]
129129 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
130- public static HResult InitializeCubeFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "const Image *" ) ] Image * images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
130+ public static HResult InitializeCubeFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "Image const *" ) ] Image * images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
131131 {
132132 HResult ret = DirectXTex . InitializeCubeFromImagesNative ( img , images , nImages , flags ) ;
133133 return ret ;
@@ -138,7 +138,7 @@ public static HResult InitializeCubeFromImages(this ScratchImage img, [NativeNam
138138 /// </summary>
139139 [ NativeName ( NativeNameType . Func , "InitializeCubeFromImages" ) ]
140140 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
141- public static HResult InitializeCubeFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "const Image *" ) ] ref Image images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
141+ public static HResult InitializeCubeFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "Image const *" ) ] ref Image images , [ NativeName ( NativeNameType . Param , "nImages" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint nImages , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
142142 {
143143 fixed ( Image * pimages = & images )
144144 {
@@ -152,7 +152,7 @@ public static HResult InitializeCubeFromImages(this ScratchImage img, [NativeNam
152152 /// </summary>
153153 [ NativeName ( NativeNameType . Func , "Initialize3DFromImages" ) ]
154154 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
155- public static HResult Initialize3DFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "const Image *" ) ] Image * images , [ NativeName ( NativeNameType . Param , "depth" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint depth , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
155+ public static HResult Initialize3DFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "Image const *" ) ] Image * images , [ NativeName ( NativeNameType . Param , "depth" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint depth , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
156156 {
157157 HResult ret = DirectXTex . Initialize3DFromImagesNative ( img , images , depth , flags ) ;
158158 return ret ;
@@ -163,7 +163,7 @@ public static HResult Initialize3DFromImages(this ScratchImage img, [NativeName(
163163 /// </summary>
164164 [ NativeName ( NativeNameType . Func , "Initialize3DFromImages" ) ]
165165 [ return : NativeName ( NativeNameType . Type , "HRESULT" ) ]
166- public static HResult Initialize3DFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "const Image *" ) ] ref Image images , [ NativeName ( NativeNameType . Param , "depth" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint depth , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
166+ public static HResult Initialize3DFromImages ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "images" ) ] [ NativeName ( NativeNameType . Type , "Image const *" ) ] ref Image images , [ NativeName ( NativeNameType . Param , "depth" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint depth , [ NativeName ( NativeNameType . Param , "flags" ) ] [ NativeName ( NativeNameType . Type , "CP_FLAGS" ) ] CPFlags flags )
167167 {
168168 fixed ( Image * pimages = & images )
169169 {
@@ -197,7 +197,7 @@ public static bool OverrideFormat(this ScratchImage img, [NativeName(NativeNameT
197197 /// To be documented.
198198 /// </summary>
199199 [ NativeName ( NativeNameType . Func , "GetMetadata" ) ]
200- [ return : NativeName ( NativeNameType . Type , "const TexMetadata" ) ]
200+ [ return : NativeName ( NativeNameType . Type , "TexMetadata const " ) ]
201201 public static TexMetadata GetMetadata ( this ScratchImage img )
202202 {
203203 TexMetadata ret = DirectXTex . GetMetadataNative ( img ) ;
@@ -208,7 +208,7 @@ public static TexMetadata GetMetadata(this ScratchImage img)
208208 /// To be documented.
209209 /// </summary>
210210 [ NativeName ( NativeNameType . Func , "GetImage" ) ]
211- [ return : NativeName ( NativeNameType . Type , "const Image *" ) ]
211+ [ return : NativeName ( NativeNameType . Type , "Image const *" ) ]
212212 public static Image * GetImage ( this ScratchImage img , [ NativeName ( NativeNameType . Param , "mip" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint mip , [ NativeName ( NativeNameType . Param , "item" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint item , [ NativeName ( NativeNameType . Param , "slice" ) ] [ NativeName ( NativeNameType . Type , "size_t" ) ] nuint slice )
213213 {
214214 Image * ret = DirectXTex . GetImageNative ( img , mip , item , slice ) ;
@@ -219,7 +219,7 @@ public static TexMetadata GetMetadata(this ScratchImage img)
219219 /// To be documented.
220220 /// </summary>
221221 [ NativeName ( NativeNameType . Func , "GetImages" ) ]
222- [ return : NativeName ( NativeNameType . Type , "const Image *" ) ]
222+ [ return : NativeName ( NativeNameType . Type , "Image const *" ) ]
223223 public static Image * GetImages ( this ScratchImage img )
224224 {
225225 Image * ret = DirectXTex . GetImagesNative ( img ) ;
@@ -241,7 +241,7 @@ public static nuint GetImageCount(this ScratchImage img)
241241 /// To be documented.
242242 /// </summary>
243243 [ NativeName ( NativeNameType . Func , "GetPixels" ) ]
244- [ return : NativeName ( NativeNameType . Type , "uint8_t*" ) ]
244+ [ return : NativeName ( NativeNameType . Type , "uint8_t *" ) ]
245245 public static byte * GetPixels ( this ScratchImage img )
246246 {
247247 byte * ret = DirectXTex . GetPixelsNative ( img ) ;
@@ -252,7 +252,7 @@ public static nuint GetImageCount(this ScratchImage img)
252252 /// To be documented.
253253 /// </summary>
254254 [ NativeName ( NativeNameType . Func , "GetPixels" ) ]
255- [ return : NativeName ( NativeNameType . Type , "uint8_t*" ) ]
255+ [ return : NativeName ( NativeNameType . Type , "uint8_t *" ) ]
256256 public static string GetPixelsS ( this ScratchImage img )
257257 {
258258 string ret = Utils . DecodeStringUTF8 ( DirectXTex . GetPixelsNative ( img ) ) ;
@@ -306,7 +306,7 @@ public static void Release(this Blob blob)
306306 /// To be documented.
307307 /// </summary>
308308 [ NativeName ( NativeNameType . Func , "BlobGetBufferPointer" ) ]
309- [ return : NativeName ( NativeNameType . Type , "void*" ) ]
309+ [ return : NativeName ( NativeNameType . Type , "void *" ) ]
310310 public static void * GetBufferPointer ( this Blob blob )
311311 {
312312 void * ret = DirectXTex . BlobGetBufferPointerNative ( blob ) ;
0 commit comments