Skip to content

Commit 7cafa94

Browse files
committed
Fix typo: Assign
1 parent acde43e commit 7cafa94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

v1.1/vk/vk.auto.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10005,7 +10005,7 @@ func ToCmdFillBuffer(p PFNVoidFunction) (fn FuncCmdFillBuffer) {
1000510005
type PFNCmdClearColorImage C.PFN_vkCmdClearColorImage
1000610006
type ClearColorValue C.VkClearColorValue
1000710007

10008-
func (g *ClearColorValue) AssginFloat32(v [4]float32) {
10008+
func (g *ClearColorValue) AssignFloat32(v [4]float32) {
1000910009
var cv [4]C.float
1001010010
for i, _ := range v {
1001110011
cv[i] = C.float(v[i])
@@ -10019,7 +10019,7 @@ func (g *ClearColorValue) Float32() (v [4]float32) {
1001910019
}
1002010020
return
1002110021
}
10022-
func (g *ClearColorValue) AssginInt32(v [4]int32) {
10022+
func (g *ClearColorValue) AssignInt32(v [4]int32) {
1002310023
var cv [4]C.int32_t
1002410024
for i, _ := range v {
1002510025
cv[i] = C.int32_t(v[i])
@@ -10033,7 +10033,7 @@ func (g *ClearColorValue) Int32() (v [4]int32) {
1003310033
}
1003410034
return
1003510035
}
10036-
func (g *ClearColorValue) AssginUint32(v [4]uint32) {
10036+
func (g *ClearColorValue) AssignUint32(v [4]uint32) {
1003710037
var cv [4]C.uint32_t
1003810038
for i, _ := range v {
1003910039
cv[i] = C.uint32_t(v[i])
@@ -10140,7 +10140,7 @@ func ToCmdClearDepthStencilImage(p PFNVoidFunction) (fn FuncCmdClearDepthStencil
1014010140
type PFNCmdClearAttachments C.PFN_vkCmdClearAttachments
1014110141
type ClearValue C.VkClearValue
1014210142

10143-
func (g *ClearValue) AssginColor(v ClearColorValue) {
10143+
func (g *ClearValue) AssignColor(v ClearColorValue) {
1014410144
var cv C.VkClearColorValue
1014510145
cv = C.VkClearColorValue(v)
1014610146
*(*C.VkClearColorValue)(unsafe.Pointer(g)) = cv
@@ -10150,7 +10150,7 @@ func (g *ClearValue) Color() (v ClearColorValue) {
1015010150
v = ClearColorValue(cv)
1015110151
return
1015210152
}
10153-
func (g *ClearValue) AssginDepthStencil(v ClearDepthStencilValue) {
10153+
func (g *ClearValue) AssignDepthStencil(v ClearDepthStencilValue) {
1015410154
var cv C.VkClearDepthStencilValue
1015510155
v.toC(&cv)
1015610156
*(*C.VkClearDepthStencilValue)(unsafe.Pointer(g)) = cv

vk-gen/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (g *generator) genRecordTypeUnion(decl *cast.RecordDecl) *typeInfo {
179179
lhs := starExpr(callExpr(starExpr(finfo.ctype), callExpr(ident("unsafe.Pointer"), ident("g"))))
180180
stmts0 = append(stmts0, assignStmt1n1(lhs, ident("cv")))
181181
}
182-
g.target.addGo(funcDecl(ident("Assgin"+upFirst(gostr)), recv, funcType0, stmts0...))
182+
g.target.addGo(funcDecl(ident("Assign"+upFirst(gostr)), recv, funcType0, stmts0...))
183183

184184
//get
185185
funcType1 := funcType(nil, []*goast.Field{

0 commit comments

Comments
 (0)