query
stringlengths
7
3.85k
document
stringlengths
11
430k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the value of a uniform variable
func GetUniformfv(program uint32, location int32, params *float32) { C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id ...
[ "0.6617731", "0.6482883", "0.6452393", "0.640932", "0.631057", "0.61913973", "0.6153511", "0.6148114", "0.6143711", "0.6107737", "0.6098144", "0.60758877", "0.60660994", "0.6041608", "0.60092354", "0.59648925", "0.59552354", "0.594257", "0.594257", "0.5935811", "0.59283304", ...
0.6340282
5
Returns the value of a uniform variable
func GetUniformiv(program uint32, location int32, params *int32) { C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func (u *Uniform) Bind() {\n\tif u.id < 0 {\n\t\tu.id = gl.GetUniformLocation(u.program, glString(u.name))\n\t\tif u.id ...
[ "0.6617731", "0.6482883", "0.6452393", "0.640932", "0.6340282", "0.6340282", "0.631057", "0.61913973", "0.6153511", "0.6148114", "0.6143711", "0.6107737", "0.6098144", "0.60758877", "0.60660994", "0.6041608", "0.60092354", "0.59648925", "0.59552354", "0.5935811", "0.59283304"...
0.594257
20
retrieve parameters of a vertex array object
func GetVertexArrayiv(vaobj uint32, pname uint32, param *int32) { C.glowGetVertexArrayiv(gpGetVertexArrayiv, (C.GLuint)(vaobj), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func GetVertexAttribdv(index uint32, pname uint32, params *float64) {\n C.glowGetVertexAttribdv(gpGetVertexAttri...
[ "0.57522565", "0.5722515", "0.56959337", "0.55869", "0.54317236", "0.5371315", "0.5345207", "0.52188206", "0.51970226", "0.51970226", "0.5188035", "0.5178479", "0.51687473", "0.5128255", "0.5121753", "0.5121238", "0.5121238", "0.51135916", "0.5105355", "0.5105355", "0.5060416...
0.54755205
5
Return a generic vertex attribute parameter
func GetVertexAttribIiv(index uint32, pname uint32, params *int32) { C.glowGetVertexAttribIiv(gpGetVertexAttribIiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n...
[ "0.61261106", "0.6115076", "0.594166", "0.594166", "0.59032947", "0.5809674", "0.57940775", "0.57808095", "0.5760031", "0.5760031", "0.56938803", "0.56938803", "0.55741006", "0.5543747", "0.5543747", "0.55168235", "0.5514072", "0.55108327", "0.5486837", "0.54687995", "0.54627...
0.53847593
32
Return a generic vertex attribute parameter
func GetVertexAttribIuiv(index uint32, pname uint32, params *uint32) { C.glowGetVertexAttribIuiv(gpGetVertexAttribIuiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n...
[ "0.61261106", "0.6115076", "0.594166", "0.594166", "0.59032947", "0.5809674", "0.57940775", "0.57808095", "0.5760031", "0.5760031", "0.56938803", "0.56938803", "0.55741006", "0.5543747", "0.5543747", "0.55168235", "0.5514072", "0.55108327", "0.5486837", "0.54687995", "0.54627...
0.53343844
35
Return a generic vertex attribute parameter
func GetVertexAttribLdv(index uint32, pname uint32, params *float64) { C.glowGetVertexAttribLdv(gpGetVertexAttribLdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n...
[ "0.61261106", "0.6115076", "0.594166", "0.594166", "0.59032947", "0.5809674", "0.57940775", "0.57808095", "0.5760031", "0.5760031", "0.56938803", "0.56938803", "0.55741006", "0.5543747", "0.5543747", "0.55168235", "0.5514072", "0.55108327", "0.5486837", "0.54687995", "0.54627...
0.5179481
41
return the address of the specified generic vertex attribute pointer
func GetVertexAttribPointerv(index uint32, pname uint32, pointer *unsafe.Pointer) { C.glowGetVertexAttribPointerv(gpGetVertexAttribPointerv, (C.GLuint)(index), (C.GLenum)(pname), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) {\n C.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer)\n}", "func Verte...
[ "0.7100245", "0.70918846", "0.6895436", "0.6761777", "0.6761777", "0.67304206", "0.66731364", "0.64958525", "0.6483871", "0.63685584", "0.6300858", "0.6234352", "0.6114593", "0.6023855", "0.5942245", "0.59172857", "0.5869704", "0.58387804", "0.58387804", "0.5824477", "0.58219...
0.66372466
8
Return a generic vertex attribute parameter
func GetVertexAttribdv(index uint32, pname uint32, params *float64) { C.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n...
[ "0.61261106", "0.6115076", "0.594166", "0.594166", "0.59032947", "0.5809674", "0.57940775", "0.57808095", "0.5760031", "0.5760031", "0.56938803", "0.56938803", "0.55741006", "0.55168235", "0.5514072", "0.55108327", "0.5486837", "0.54687995", "0.54627216", "0.5452464", "0.5442...
0.5543747
14
Return a generic vertex attribute parameter
func GetVertexAttribfv(index uint32, pname uint32, params *float32) { C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n...
[ "0.61261106", "0.6115076", "0.59032947", "0.5809674", "0.57940775", "0.57808095", "0.5760031", "0.5760031", "0.56938803", "0.56938803", "0.55741006", "0.5543747", "0.5543747", "0.55168235", "0.5514072", "0.55108327", "0.5486837", "0.54687995", "0.54627216", "0.5452464", "0.54...
0.594166
3
Return a generic vertex attribute parameter
func GetVertexAttribiv(index uint32, pname uint32, params *int32) { C.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetVertexAttribfv(index uint32, pname uint32, params *float32) {\n C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params)))\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n...
[ "0.61261106", "0.6115076", "0.594166", "0.594166", "0.59032947", "0.5809674", "0.57940775", "0.57808095", "0.5760031", "0.5760031", "0.55741006", "0.5543747", "0.5543747", "0.55168235", "0.5514072", "0.55108327", "0.5486837", "0.54687995", "0.54627216", "0.5452464", "0.544263...
0.56938803
11
Return value has type C.GLVULKANPROCNV.
func GetVkProcAddrNV(name *uint8) unsafe.Pointer { ret := C.glowGetVkProcAddrNV(gpGetVkProcAddrNV, (*C.GLchar)(unsafe.Pointer(name))) return (unsafe.Pointer)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetNVList(rw io.ReadWriter) ([]uint32, error) {\n\tbuf, err := getCapability(rw, CapNVList, 0)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tnvList := make([]uint32, len(buf)/4)\n\tfor i := range nvList {\n\t\tnvList[i] = uint32(binary.BigEndian.Uint32(buf[i*4 : (i+1)*4]))\n\t}\n\n\treturn nvList, err\n}", ...
[ "0.47217992", "0.46881145", "0.45882735", "0.44653612", "0.4458546", "0.44288853", "0.4385663", "0.43714806", "0.43645296", "0.43441445", "0.4312077", "0.43080658", "0.4298448", "0.42758155", "0.4259315", "0.42544064", "0.42462194", "0.42406696", "0.42257932", "0.4220042", "0...
0.40291238
54
control the writing of individual bits in the color index buffers
func IndexMask(mask uint32) { C.glowIndexMask(gpIndexMask, (C.GLuint)(mask)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pal *CGBPalette) updateIndex(value byte) {\n\tpal.index = value & 0x3F\n\tpal.inc = bits.Test(value, 7)\n}", "func encodeBWData(w io.Writer, img image.Image, opts *EncodeOptions) error {\n\t// In the background, write each index value into a channel.\n\trect := img.Bounds()\n\twidth := rect.Max.X - rect.Mi...
[ "0.62844443", "0.5790385", "0.5768539", "0.57655627", "0.56250745", "0.56088126", "0.550877", "0.5501777", "0.5496045", "0.53742635", "0.52181643", "0.5210275", "0.5206621", "0.5200608", "0.51650155", "0.51043737", "0.5078711", "0.50605685", "0.50455046", "0.5020095", "0.5018...
0.5010082
21
define an array of color indexes
func IndexPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { C.glowIndexPointer(gpIndexPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func makeColorLookup(vals []int, length int) []int {\n\tres := make([]int, length)\n\n\tvi := 0\n\tfor i := 0; i < len(res); i++ {\n\t\tif vi+1 < len(vals) {\n\t\t\tif i <= (vals[vi]+vals[vi+1])/2 {\n\t\t\t\tres[i] = vi\n\t\t\t} else {\n\t\t\t\tvi++\n\t\t\t\tres[i] = vi\n\t\t\t}\n\t\t} else if vi < len(vals) {\n\t...
[ "0.6373035", "0.63277876", "0.6205362", "0.56236786", "0.5571079", "0.53576183", "0.53054315", "0.52919", "0.5276611", "0.5271397", "0.52600247", "0.5238646", "0.5238602", "0.5228688", "0.5194242", "0.5160445", "0.5144809", "0.5142896", "0.5138408", "0.51381", "0.5088998", ...
0.0
-1
initialize the name stack
func InitNames() { C.glowInitNames(gpInitNames) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InitNames() {\n\tsyscall.Syscall(gpInitNames, 0, 0, 0, 0)\n}", "func InitNames() {\n C.glowInitNames(gpInitNames)\n}", "func (js *jsonName) Init(s string) {\n\tjs.has = true\n\tjs.name = s\n}", "func initialize() {\n\n\thead.data = \"San Francisco\"\n\thead.next = nil\n\n\tvar Oakland *Node = &Node{dat...
[ "0.63717574", "0.59653115", "0.5678458", "0.5650483", "0.56482613", "0.56462455", "0.55364794", "0.5407376", "0.5403332", "0.53570443", "0.5354249", "0.5347625", "0.5310569", "0.528118", "0.52762264", "0.5262355", "0.5256867", "0.5239515", "0.5216435", "0.52063924", "0.516896...
0.6029284
1
simultaneously specify and enable several interleaved arrays
func InterleavedArrays(format uint32, stride int32, pointer unsafe.Pointer) { C.glowInterleavedArrays(gpInterleavedArrays, (C.GLenum)(format), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InterleavedArrays(format uint32, stride int32, pointer unsafe.Pointer) {\n\tsyscall.Syscall(gpInterleavedArrays, 3, uintptr(format), uintptr(stride), uintptr(pointer))\n}", "func InterleavedArrays(format uint32, stride int32, pointer unsafe.Pointer) {\n C.glowInterleavedArrays(gpInterleavedArrays, (C.GLenu...
[ "0.6432597", "0.6319476", "0.56165224", "0.5566762", "0.5539364", "0.5323958", "0.5323958", "0.502087", "0.4990113", "0.49731818", "0.49213466", "0.49189755", "0.48950323", "0.48914087", "0.4859467", "0.4848276", "0.4848276", "0.47889075", "0.47889075", "0.46759585", "0.46665...
0.6322441
1
invalidate the content of a buffer object's data store
func InvalidateBufferData(buffer uint32) { C.glowInvalidateBufferData(gpInvalidateBufferData, (C.GLuint)(buffer)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateBufferData(buffer uint32) {\n\tsyscall.Syscall(gpInvalidateBufferData, 1, uintptr(buffer), 0, 0)\n}", "func (e *ObservableEditableBuffer) ResetBuffer() {\n\te.filtertagobservers = false\n\te.seq = 0\n\te.f = NewTypeBuffer([]rune{}, e)\n}", "func (speech *SpeechSync) ClearBuffer() {\n\tspeech.dat...
[ "0.6431159", "0.62961084", "0.6214611", "0.61872774", "0.6114385", "0.6106263", "0.6093866", "0.60401905", "0.59512293", "0.5912671", "0.58981407", "0.5887128", "0.5853619", "0.5850525", "0.5794216", "0.57595456", "0.5751458", "0.57296103", "0.5715251", "0.5701097", "0.565179...
0.58708185
13
invalidate a region of a buffer object's data store
func InvalidateBufferSubData(buffer uint32, offset int, length int) { C.glowInvalidateBufferSubData(gpInvalidateBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateBufferData(buffer uint32) {\n\tsyscall.Syscall(gpInvalidateBufferData, 1, uintptr(buffer), 0, 0)\n}", "func InvalidateBufferSubData(buffer uint32, offset int, length int) {\n\tsyscall.Syscall(gpInvalidateBufferSubData, 3, uintptr(buffer), uintptr(offset), uintptr(length))\n}", "func InvalidateBu...
[ "0.6540778", "0.63262284", "0.63032913", "0.6283142", "0.5975635", "0.5975635", "0.56049734", "0.5571924", "0.5565431", "0.55641973", "0.5540733", "0.55034137", "0.550213", "0.5496075", "0.54930866", "0.5422246", "0.5381801", "0.5379293", "0.52749485", "0.52730536", "0.526838...
0.59145784
7
invalidate the content of some or all of a framebuffer's attachments
func InvalidateFramebuffer(target uint32, numAttachments int32, attachments *uint32) { C.glowInvalidateFramebuffer(gpInvalidateFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateFramebuffer(target uint32, numAttachments int32, attachments *uint32) {\n C.glowInvalidateFramebuffer(gpInvalidateFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)))\n}", "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attach...
[ "0.684292", "0.6738991", "0.6663649", "0.6554966", "0.65495056", "0.64778996", "0.64778996", "0.6452918", "0.64107835", "0.64107835", "0.6217793", "0.6217793", "0.5660155", "0.55788666", "0.5505714", "0.54811406", "0.54708076", "0.5326192", "0.52395916", "0.51981556", "0.5148...
0.6264575
11
invalidate the content of some or all of a framebuffer's attachments
func InvalidateNamedFramebufferData(framebuffer uint32, numAttachments int32, attachments *uint32) { C.glowInvalidateNamedFramebufferData(gpInvalidateNamedFramebufferData, (C.GLuint)(framebuffer), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateFramebuffer(target uint32, numAttachments int32, attachments *uint32) {\n C.glowInvalidateFramebuffer(gpInvalidateFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)))\n}", "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attach...
[ "0.68448377", "0.6739778", "0.66656774", "0.6555456", "0.6550924", "0.64785826", "0.64785826", "0.6453567", "0.62670827", "0.62670827", "0.62186563", "0.62186563", "0.56610215", "0.5580716", "0.5507069", "0.54841954", "0.5473034", "0.5325019", "0.5241207", "0.5198889", "0.514...
0.64124924
9
invalidate the content of a region of some or all of a framebuffer's attachments
func InvalidateNamedFramebufferSubData(framebuffer uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) { C.glowInvalidateNamedFramebufferSubData(gpInvalidateNamedFramebufferSubData, (C.GLuint)(framebuffer), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y),...
[ "0.6822423", "0.66477346", "0.6568386", "0.6559423", "0.6542912", "0.63519734", "0.6277841", "0.6277841", "0.6161295", "0.6161295", "0.6093057", "0.6093057", "0.5715403", "0.5618743", "0.55588067", "0.547038", "0.54432386", "0.5265134", "0.51767373", "0.5125759", "0.51059806"...
0.6447339
6
invalidate the content of a region of some or all of a framebuffer's attachments
func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) { C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) {\n C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y),...
[ "0.6822423", "0.66477346", "0.6568386", "0.6559423", "0.6542912", "0.6447339", "0.6447339", "0.63519734", "0.6161295", "0.6161295", "0.6093057", "0.6093057", "0.5715403", "0.5618743", "0.55588067", "0.547038", "0.54432386", "0.5265134", "0.51767373", "0.5125759", "0.51059806"...
0.6277841
9
invalidate the entirety a texture image
func InvalidateTexImage(texture uint32, level int32) { C.glowInvalidateTexImage(gpInvalidateTexImage, (C.GLuint)(texture), (C.GLint)(level)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateTexImage(texture uint32, level int32) {\n\tsyscall.Syscall(gpInvalidateTexImage, 2, uintptr(texture), uintptr(level), 0)\n}", "func InvalidateTexImage(texture uint32, level int32) {\n C.glowInvalidateTexImage(gpInvalidateTexImage, (C.GLuint)(texture), (C.GLint)(level))\n}", "func ClearTexImage(...
[ "0.6743091", "0.6742461", "0.6200847", "0.61716896", "0.61586803", "0.57621473", "0.5760824", "0.5758504", "0.56996214", "0.5698484", "0.5684085", "0.5684085", "0.5672862", "0.5637319", "0.5628318", "0.5628318", "0.56129223", "0.560826", "0.5604292", "0.5582529", "0.5514876",...
0.62057275
3
invalidate a region of a texture image
func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) { C.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InvalidateTexImage(texture uint32, level int32) {\n\tsyscall.Syscall(gpInvalidateTexImage, 2, uintptr(texture), uintptr(level), 0)\n}", "func InvalidateTexImage(texture uint32, level int32) {\n C.glowInvalidateTexImage(gpInvalidateTexImage, (C.GLuint)(texture), (C.GLint)(level))\n}", "func InvalidateTexS...
[ "0.6771784", "0.67017794", "0.6551989", "0.6234568", "0.6210605", "0.6210605", "0.59059966", "0.58877206", "0.5837811", "0.5821742", "0.56010014", "0.5569015", "0.5484221", "0.5434558", "0.5401425", "0.53949165", "0.53861105", "0.53861105", "0.5382014", "0.5382014", "0.535715...
0.60835135
7
determine if a name corresponds to a buffer object
func IsBuffer(buffer uint32) bool { ret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (a *Asset) IsBuffered() bool {\n\treturn isBufferName(a.OutName)\n}", "func IsBuffer(buffer uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsBuffer, 1, uintptr(buffer), 0, 0)\n\treturn ret != 0\n}", "func IsBuffer(buffer uint32) bool {\n ret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer))\n return r...
[ "0.58095646", "0.5707791", "0.56482685", "0.55564255", "0.5483852", "0.5476433", "0.5455121", "0.54406893", "0.53823435", "0.5381958", "0.53701556", "0.53518474", "0.5342713", "0.5336536", "0.5293513", "0.5249319", "0.5236945", "0.5214685", "0.51958483", "0.5146106", "0.51134...
0.53153306
15
determine if a name corresponds to a framebuffer object
func IsFramebuffer(framebuffer uint32) bool { ret := C.glowIsFramebuffer(gpIsFramebuffer, (C.GLuint)(framebuffer)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IsFramebuffer(framebuffer uint32) bool {\n ret := C.glowIsFramebuffer(gpIsFramebuffer, (C.GLuint)(framebuffer))\n return ret == TRUE\n}", "func IsFramebuffer(framebuffer uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsFramebuffer, 1, uintptr(framebuffer), 0, 0)\n\treturn ret != 0\n}", "func IsFramebu...
[ "0.65359837", "0.6146991", "0.5986482", "0.59707755", "0.5905901", "0.58175486", "0.5786624", "0.5786624", "0.56857234", "0.56857234", "0.56761026", "0.5631176", "0.561058", "0.5592658", "0.5566512", "0.55430293", "0.55430293", "0.5542829", "0.5542829", "0.547708", "0.547708"...
0.59171134
5
determine if a name corresponds to a display list
func IsList(list uint32) bool { ret := C.glowIsList(gpIsList, (C.GLuint)(list)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IsInList(a string, list []Client) bool {\n\tfor _, b := range list {\n\t\tif b.Name == a {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}", "func (o *Job) HasDisplayname() bool {\n\tif o != nil && o.Displayname != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}", "func (me TxsdSelectionAnswerTypeSeque...
[ "0.5739352", "0.57390684", "0.57381266", "0.5698177", "0.5638775", "0.5573461", "0.5487408", "0.54286337", "0.53456706", "0.53454715", "0.5342233", "0.5340279", "0.53320843", "0.53261995", "0.5317661", "0.5313707", "0.53026736", "0.5279862", "0.527687", "0.52686745", "0.52519...
0.0
-1
Determines if a name corresponds to a program object
func IsProgram(program uint32) bool { ret := C.glowIsProgram(gpIsProgram, (C.GLuint)(program)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func CheckIsLeagueExecutable(name string) bool {\r\n\treturn strings.HasSuffix(strings.TrimSpace(strings.ToLower(name)), \"leagueclient.exe\")\r\n}", "func iscall(prog *obj.Prog, name *obj.LSym) bool {\n\tif prog == nil {\n\t\tFatal(\"iscall: prog is nil\")\n\t}\n\tif name == nil {\n\t\tFatal(\"iscall: function ...
[ "0.5884721", "0.5820072", "0.55430114", "0.5430011", "0.5352018", "0.53036135", "0.51930034", "0.5168736", "0.51669437", "0.515422", "0.514221", "0.51074106", "0.5089718", "0.5015285", "0.4948159", "0.49452102", "0.4925528", "0.4921279", "0.48879972", "0.48698437", "0.4868830...
0.50218266
14
determine if a name corresponds to a program pipeline object
func IsProgramPipeline(pipeline uint32) bool { ret := C.glowIsProgramPipeline(gpIsProgramPipeline, (C.GLuint)(pipeline)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IsProgramPipeline(pipeline uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsProgramPipeline, 1, uintptr(pipeline), 0, 0)\n\treturn ret != 0\n}", "func IsProgramPipeline(pipeline uint32) bool {\n ret := C.glowIsProgramPipeline(gpIsProgramPipeline, (C.GLuint)(pipeline))\n return ret == TRUE\n}", "func (...
[ "0.6325196", "0.6267771", "0.5848094", "0.5819732", "0.5615766", "0.555063", "0.54052204", "0.5222975", "0.5158938", "0.51357687", "0.51293266", "0.5092916", "0.5084024", "0.5072239", "0.5052269", "0.5038778", "0.50297457", "0.5006188", "0.49929217", "0.4952545", "0.49442524"...
0.5878413
3
determine if a name corresponds to a query object
func IsQuery(id uint32) bool { ret := C.glowIsQuery(gpIsQuery, (C.GLuint)(id)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func isQuery(slct string) bool {\n\ts := strings.ToUpper(strings.TrimSpace(slct))\n\thas := strings.Contains\n\tif strings.HasPrefix(s, \"SELECT\") && !has(s, \"INTO\") {\n\t\treturn true\n\t}\n\tif strings.HasPrefix(s, \"SHOW\") && (has(s, \"CREATE\") || has(s, \"DATABASES\") || has(s, \"TABLES\")) {\n\t\treturn ...
[ "0.64505905", "0.6264815", "0.62556034", "0.5931015", "0.5874682", "0.57733893", "0.57722104", "0.57283306", "0.5649658", "0.5603658", "0.56005394", "0.553219", "0.55095875", "0.54462713", "0.5436877", "0.5433772", "0.5389541", "0.53888893", "0.53841645", "0.5379617", "0.5327...
0.5081415
56
determine if a name corresponds to a renderbuffer object
func IsRenderbuffer(renderbuffer uint32) bool { ret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (a *Asset) IsBuffered() bool {\n\treturn isBufferName(a.OutName)\n}", "func IsBuffer(buffer uint32) bool {\n ret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer))\n return ret == TRUE\n}", "func IsRenderbuffer(renderbuffer uint32) bool {\n ret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(render...
[ "0.58870584", "0.57849795", "0.577472", "0.56628656", "0.560375", "0.55894476", "0.55118024", "0.5496084", "0.5496084", "0.54501754", "0.5399621", "0.5397151", "0.53742254", "0.5339484", "0.5333023", "0.5333023", "0.52892894", "0.5272635", "0.52490485", "0.52354866", "0.51818...
0.53453535
14
determine if a name corresponds to a sampler object
func IsSampler(sampler uint32) bool { ret := C.glowIsSampler(gpIsSampler, (C.GLuint)(sampler)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IsSampler(sampler uint32) bool {\n ret := C.glowIsSampler(gpIsSampler, (C.GLuint)(sampler))\n return ret == TRUE\n}", "func IsSampler(sampler uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsSampler, 1, uintptr(sampler), 0, 0)\n\treturn ret != 0\n}", "func hasName(t Type) bool {\n\tswitch t.(type) {\n...
[ "0.6225702", "0.6128229", "0.5949357", "0.52864945", "0.5223594", "0.5162394", "0.5154328", "0.5135758", "0.5113274", "0.508851", "0.5068044", "0.5050293", "0.5030305", "0.5021834", "0.49990904", "0.49654078", "0.4927609", "0.49073908", "0.49024493", "0.48917592", "0.48848966...
0.57800925
4
Determines if a name corresponds to a shader object
func IsShader(shader uint32) bool { ret := C.glowIsShader(gpIsShader, (C.GLuint)(shader)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IsShader(shader uint32) bool {\n ret := C.glowIsShader(gpIsShader, (C.GLuint)(shader))\n return ret == TRUE\n}", "func (sh *ShaderStd) Name() string { return sh.MtlName }", "func (shader Shader) IsShader() bool {\n\treturn gl.IsShader(uint32(shader))\n}", "func IsShader(shader uint32) bool {\n\tret, _...
[ "0.61987984", "0.60917497", "0.5879628", "0.58257455", "0.5635945", "0.551476", "0.5453865", "0.53777456", "0.5326302", "0.5275029", "0.5170252", "0.50690496", "0.50681496", "0.49970964", "0.49844897", "0.49804762", "0.49802765", "0.49486783", "0.494003", "0.49345624", "0.491...
0.5678232
5
determine if a name corresponds to a sync object
func IsSync(sync uintptr) bool { ret := C.glowIsSync(gpIsSync, (C.GLsync)(sync)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func isSyncResource(obj client.Object) bool {\n\tif v, ok := obj.GetAnnotations()[syncAnnotation]; ok {\n\t\tb, err := strconv.ParseBool(v)\n\t\tif b && err == nil {\n\t\t\treturn true\n\t\t}\n\t\tif err != nil {\n\t\t\tlog.Error(\"value format of annotation %v failed: %v, got value: %v%\", syncAnnotation, err, v)...
[ "0.63812995", "0.57971066", "0.5670115", "0.5649096", "0.5639601", "0.5593221", "0.5404589", "0.53668195", "0.53643936", "0.53286886", "0.53199124", "0.5313464", "0.52523345", "0.5228489", "0.5222134", "0.51968783", "0.5143813", "0.51406914", "0.5106199", "0.51034564", "0.507...
0.5275863
13
determine if a name corresponds to a texture
func IsTexture(texture uint32) bool { ret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IsTexture(texture uint32) bool {\n ret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture))\n return ret == TRUE\n}", "func IsTexture(texture uint32) bool {\n\tret, _, _ := syscall.Syscall(gpIsTexture, 1, uintptr(texture), 0, 0)\n\treturn ret != 0\n}", "func IsTexture(t Texture) bool {\n\treturn gl.IsTe...
[ "0.6506235", "0.6324817", "0.6290457", "0.6051746", "0.60405356", "0.59020525", "0.5821584", "0.58060527", "0.55988795", "0.5555456", "0.5422459", "0.5422343", "0.53182197", "0.53151083", "0.5294126", "0.5269514", "0.5241979", "0.52382743", "0.5235356", "0.52039367", "0.51422...
0.5839103
7
determine if a name corresponds to a transform feedback object
func IsTransformFeedback(id uint32) bool { ret := C.glowIsTransformFeedback(gpIsTransformFeedback, (C.GLuint)(id)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (me TxsdNodeRoleSimpleContentExtensionCategory) IsName() bool { return me.String() == \"name\" }", "func (me TSearchQualificationTypesSortProperty) IsName() bool { return me.String() == \"Name\" }", "func (o *LogsPipelineProcessor) GetNameOk() (*string, bool) {\n\tif o == nil || o.Name == nil {\n\t\tretur...
[ "0.58264047", "0.5682838", "0.553338", "0.5502983", "0.54955417", "0.54645574", "0.53569835", "0.5317089", "0.52396387", "0.52234924", "0.5217064", "0.52167743", "0.52090096", "0.5162367", "0.5149272", "0.514301", "0.51371473", "0.5136019", "0.5128992", "0.51241666", "0.51230...
0.0
-1
determine if a name corresponds to a vertex array object
func IsVertexArray(array uint32) bool { ret := C.glowIsVertexArray(gpIsVertexArray, (C.GLuint)(array)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func testVertex(name string, interested_item string) bool {\n\t// fmt.Println(\"name:\", name, \"interested_item\", interested_item)\n\n\tif name == interested_item {\n\t\treturn true\n\t}\n\n\treturn false\n}", "func IsVertexArray(array uint32) bool {\n ret := C.glowIsVertexArray(gpIsVertexArray, (C.GLuint)(ar...
[ "0.5841462", "0.5635004", "0.5388105", "0.49901265", "0.4957508", "0.49247536", "0.4924174", "0.48913977", "0.4851098", "0.483455", "0.48001277", "0.47970814", "0.47970814", "0.47772264", "0.47765008", "0.47683877", "0.47553006", "0.47452325", "0.47421932", "0.4691339", "0.46...
0.5159486
4
specify the line stipple pattern
func LineStipple(factor int32, pattern uint16) { C.glowLineStipple(gpLineStipple, (C.GLint)(factor), (C.GLushort)(pattern)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LineStipple(factor int32, pattern uint16) {\n\tsyscall.Syscall(gpLineStipple, 2, uintptr(factor), uintptr(pattern), 0)\n}", "func LineStipple(factor int32, pattern uint16) {\n C.glowLineStipple(gpLineStipple, (C.GLint)(factor), (C.GLushort)(pattern))\n}", "func PolygonStipple(mask *uint8) {\n C.glowPoly...
[ "0.81452554", "0.7987065", "0.5726458", "0.5603769", "0.541468", "0.54131484", "0.5227642", "0.5086973", "0.503296", "0.50162023", "0.4964184", "0.49558353", "0.49404633", "0.48910254", "0.48617828", "0.4848811", "0.48212528", "0.4772971", "0.4762349", "0.47515386", "0.474326...
0.7616251
2
specify the width of rasterized lines
func LineWidth(width float32) { C.glowLineWidth(gpLineWidth, (C.GLfloat)(width)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LineWidth(width float32) {\n\tgl.LineWidth(width)\n}", "func LineWidth(width float32) {\n\tsyscall.Syscall(gpLineWidth, 1, uintptr(math.Float32bits(width)), 0, 0)\n}", "func LineWidth(width float32) {\n C.glowLineWidth(gpLineWidth, (C.GLfloat)(width))\n}", "func (native *OpenGL) LineWidth(lw float32) {...
[ "0.67532694", "0.6400872", "0.6385761", "0.6306526", "0.6233118", "0.5742466", "0.5557246", "0.5539842", "0.54203606", "0.53814673", "0.5364804", "0.53304803", "0.532151", "0.52899444", "0.52257097", "0.5220577", "0.51964474", "0.51629263", "0.51582474", "0.51361305", "0.5129...
0.64162534
2
Links a program object
func LinkProgram(program uint32) { C.glowLinkProgram(gpLinkProgram, (C.GLuint)(program)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (program Program) Link() {\n\tgl.LinkProgram(uint32(program))\n}", "func LinkProgram(p Program) {\n\tgl.LinkProgram(p.Value)\n}", "func LinkProgram(program uint32) {\n\tsyscall.Syscall(gpLinkProgram, 1, uintptr(program), 0, 0)\n}", "func LinkProgram(program uint32) {\n C.glowLinkProgram(gpLinkProgram, ...
[ "0.72972095", "0.6831142", "0.6822032", "0.65613335", "0.65003073", "0.61334103", "0.58112955", "0.577948", "0.5677661", "0.5647645", "0.55451894", "0.55361384", "0.54883385", "0.5471105", "0.54211915", "0.53957856", "0.53956985", "0.53811044", "0.5370915", "0.53390664", "0.5...
0.6486157
6
set the displaylist base for
func ListBase(base uint32) { C.glowListBase(gpListBase, (C.GLuint)(base)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *List) SetDisplayName(value *string)() {\n m.displayName = value\n}", "func ListBase(base uint32) {\n\tsyscall.Syscall(gpListBase, 1, uintptr(base), 0, 0)\n}", "func ListBase(base uint32) {\n C.glowListBase(gpListBase, (C.GLuint)(base))\n}", "func createDisplaysList(e *Elevator) {\n\tdisplay := n...
[ "0.5717477", "0.57107383", "0.5401722", "0.52565634", "0.51821727", "0.5164439", "0.51175773", "0.501092", "0.4951619", "0.48923728", "0.487103", "0.48666343", "0.48548758", "0.4821617", "0.4754428", "0.4739806", "0.4737783", "0.47319996", "0.47286794", "0.47130919", "0.47010...
0.5506329
2
replace the current matrix with the identity matrix
func LoadIdentity() { C.glowLoadIdentity(gpLoadIdentity) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c2d *C2DMatrix) Identity() {\n\tc2d.matrix.m11 = 1\n\tc2d.matrix.m12 = 0\n\tc2d.matrix.m13 = 0\n\n\tc2d.matrix.m21 = 0\n\tc2d.matrix.m22 = 1\n\tc2d.matrix.m23 = 0\n\n\tc2d.matrix.m31 = 0\n\tc2d.matrix.m32 = 0\n\tc2d.matrix.m33 = 1\n}", "func Identity() Matrix {\n\treturn Matrix{1, 0, 0, 0, 0, 1, 0, 0, 0, 0...
[ "0.70241266", "0.7021237", "0.6878587", "0.67622966", "0.66264474", "0.6616889", "0.6402463", "0.6309763", "0.6251513", "0.6238026", "0.6185736", "0.60612005", "0.60321355", "0.6030096", "0.60041106", "0.5827118", "0.5573641", "0.5540295", "0.5516417", "0.5383947", "0.5379023...
0.0
-1
load a name onto the name stack
func LoadName(name uint32) { C.glowLoadName(gpLoadName, (C.GLuint)(name)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LoadName(name uint32) {\n\tsyscall.Syscall(gpLoadName, 1, uintptr(name), 0, 0)\n}", "func LoadName(name uint32) {\n C.glowLoadName(gpLoadName, (C.GLuint)(name))\n}", "func (s *BasePCREListener) EnterName(ctx *NameContext) {}", "func (s *BasecluListener) EnterName(ctx *NameContext) {}", "func (s *Base...
[ "0.7251144", "0.6228718", "0.6056791", "0.59025365", "0.5862252", "0.58065605", "0.57765925", "0.57720697", "0.5706092", "0.5687984", "0.5686922", "0.5668654", "0.56624854", "0.56124383", "0.55617344", "0.548181", "0.53953135", "0.5366688", "0.5350478", "0.5284687", "0.526836...
0.6190922
2
specify a logical pixel operation for rendering
func LogicOp(opcode uint32) { C.glowLogicOp(gpLogicOp, (C.GLenum)(opcode)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func DrawWithOp(screen, image *ebiten.Image, px, py int, op *ebiten.DrawImageOptions) {\n\tif op == nil {\n\t\top = &ebiten.DrawImageOptions{}\n\t}\n\top.GeoM.Translate(float64(px), float64(py))\n\tscreen.DrawImage(image, op)\n}", "func POR(mx, x operand.Op) { ctx.POR(mx, x) }", "func or(context *Context) {\n ...
[ "0.57050604", "0.55454075", "0.54799706", "0.54526716", "0.5449463", "0.5410092", "0.5382394", "0.53587544", "0.53446835", "0.5336605", "0.53325933", "0.52956736", "0.52867836", "0.52656794", "0.5261149", "0.5259228", "0.52474874", "0.5197664", "0.518285", "0.5174241", "0.515...
0.48724133
56
map all of a buffer object's data store into the client's address space
func MapBuffer(target uint32, access uint32) unsafe.Pointer { ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access)) return (unsafe.Pointer)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func bufferToServerFdMap(buffer []byte) map[string]listenerFdMap {\n\tsfm := make(map[string]listenerFdMap)\n\tif len(buffer) > 0 {\n\t\tj, _ := gjson.LoadContent(buffer)\n\t\tfor k := range j.Var().Map() {\n\t\t\tm := make(map[string]string)\n\t\t\tfor k, v := range j.Get(k).Map() {\n\t\t\t\tm[k] = gconv.String(v...
[ "0.57664865", "0.5661419", "0.5514609", "0.54701847", "0.52631134", "0.524831", "0.5198386", "0.5182785", "0.5167284", "0.51593655", "0.51026326", "0.50672704", "0.5047997", "0.5034311", "0.503426", "0.5028048", "0.5018037", "0.5013234", "0.5011324", "0.49971262", "0.4964962"...
0.5118411
11
map all or part of a buffer object's data store into the client's address space
func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer { ret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access)) return (unsafe.Pointer)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapBuffer, 2, uintptr(target), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func bufferToServerFdMap(buffer []byte) map[string]listenerFdMap {\n\tsfm := make(map[string]listenerFdMap)\n\tif len(buffer) > ...
[ "0.5849063", "0.5783888", "0.5456638", "0.5427165", "0.54219437", "0.542004", "0.5306011", "0.52919215", "0.52801114", "0.52385104", "0.52342474", "0.5231961", "0.5231961", "0.5217588", "0.521568", "0.51853454", "0.51705945", "0.5169533", "0.51590395", "0.5147361", "0.5127837...
0.0
-1
map all of a buffer object's data store into the client's address space
func MapNamedBuffer(buffer uint32, access uint32) unsafe.Pointer { ret := C.glowMapNamedBuffer(gpMapNamedBuffer, (C.GLuint)(buffer), (C.GLenum)(access)) return (unsafe.Pointer)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func bufferToServerFdMap(buffer []byte) map[string]listenerFdMap {\n\tsfm := make(map[string]listenerFdMap)\n\tif len(buffer) > 0 {\n\t\tj, _ := gjson.LoadContent(buffer)\n\t\tfor k := range j.Var().Map() {\n\t\t\tm := make(map[string]string)\n\t\t\tfor k, v := range j.Get(k).Map() {\n\t\t\t\tm[k] = gconv.String(v...
[ "0.57664865", "0.5661419", "0.5514609", "0.54701847", "0.52631134", "0.524831", "0.5198386", "0.5182785", "0.5167284", "0.51593655", "0.5118411", "0.5118411", "0.51026326", "0.50672704", "0.5047997", "0.5034311", "0.503426", "0.5028048", "0.5018037", "0.5013234", "0.5011324",...
0.45714766
98
map all or part of a buffer object's data store into the client's address space
func MapNamedBufferRange(buffer uint32, offset int, length int, access uint32) unsafe.Pointer { ret := C.glowMapNamedBufferRange(gpMapNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access)) return (unsafe.Pointer)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MapBuffer(target uint32, access uint32) unsafe.Pointer {\n\tret, _, _ := syscall.Syscall(gpMapBuffer, 2, uintptr(target), uintptr(access), 0)\n\treturn (unsafe.Pointer)(ret)\n}", "func bufferToServerFdMap(buffer []byte) map[string]listenerFdMap {\n\tsfm := make(map[string]listenerFdMap)\n\tif len(buffer) > ...
[ "0.5847731", "0.5784149", "0.5456988", "0.5427234", "0.5421219", "0.5419336", "0.5306032", "0.5292907", "0.52789736", "0.5239789", "0.5234336", "0.5230619", "0.5230619", "0.5216465", "0.5215346", "0.51862043", "0.5170163", "0.5169575", "0.51600623", "0.514647", "0.5126175", ...
0.0
-1
specify which matrix is the current matrix
func MatrixMode(mode uint32) { C.glowMatrixMode(gpMatrixMode, (C.GLenum)(mode)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Matrix(index uint) uint {\n\tif index <= 1 {\n\t\treturn index\n\t}\n\n\tf := [2][2]uint{\n\t\t{1, 1},\n\t\t{1, 0},\n\t}\n\n\tf = matrixPower(f, index-1)\n\n\treturn f[0][0]\n}", "func (me TxsdFeColorMatrixTypeType) IsMatrix() bool { return me.String() == \"matrix\" }", "func (p *Proc) Matrix(a, b, c, d, ...
[ "0.5732485", "0.5356076", "0.5254913", "0.5192842", "0.5181406", "0.5163377", "0.5084605", "0.50772196", "0.5072032", "0.49939233", "0.49833703", "0.49668446", "0.4955985", "0.49496877", "0.4901383", "0.48587218", "0.48562086", "0.48518017", "0.48500594", "0.4835069", "0.4813...
0.46391928
28
defines a barrier ordering memory transactions
func MemoryBarrier(barriers uint32) { C.glowMemoryBarrier(gpMemoryBarrier, (C.GLbitfield)(barriers)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MemoryBarrier(barriers uint32) {\n\tsyscall.Syscall(gpMemoryBarrier, 1, uintptr(barriers), 0, 0)\n}", "func MemoryBarrier(barriers uint32) {\n C.glowMemoryBarrier(gpMemoryBarrier, (C.GLbitfield)(barriers))\n}", "func (hm *HM) Barrier(b uint8) {\n\thm.LogDebug(\"Barrier(%d)..Start\", b)\n\tmanager := hm.g...
[ "0.66405576", "0.6607772", "0.554108", "0.5448886", "0.54120886", "0.53874964", "0.5366685", "0.5359955", "0.52475274", "0.5233689", "0.5108794", "0.50655013", "0.50646555", "0.506174", "0.49999192", "0.4976629", "0.4927358", "0.48909366", "0.48884553", "0.486731", "0.4857071...
0.6305867
3
specifies minimum rate at which sample shading takes place
func MinSampleShading(value float32) { C.glowMinSampleShading(gpMinSampleShading, (C.GLfloat)(value)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MinSampleShading(value float32) {\n C.glowMinSampleShading(gpMinSampleShading, (C.GLfloat)(value))\n}", "func (r SampleRateRange) Min() int {\n\treturn r.min\n}", "func sampledByRate(n uint64, rate float64) bool {\n\tif rate < 1 {\n\t\treturn n*knuthFactor < uint64(rate*math.MaxUint64)\n\t}\n\treturn tru...
[ "0.69525874", "0.5761213", "0.5586719", "0.5427825", "0.53727233", "0.52970135", "0.52669567", "0.525126", "0.52380306", "0.5237382", "0.52358687", "0.5217763", "0.51991206", "0.5196979", "0.51644117", "0.515831", "0.5077799", "0.5074383", "0.5047952", "0.500161", "0.49871653...
0.6701467
2
render multiple sets of primitives from array data
func MultiDrawArrays(mode uint32, first *int32, count *int32, drawcount int32) { C.glowMultiDrawArrays(gpMultiDrawArrays, (C.GLenum)(mode), (*C.GLint)(unsafe.Pointer(first)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLsizei)(drawcount)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func renderResults(vals []interface{}) Data {\n\tvar nilcount int\n\tvar obj interface{}\n\tfor _, val := range vals {\n\t\tswitch val.(type) {\n\t\tcase image.Image, Data:\n\t\t\tobj = val\n\t\tcase nil:\n\t\t\tnilcount++\n\t\t}\n\t}\n\tif obj != nil && nilcount == len(vals)-1 {\n\t\tswitch val := obj.(type) {\n\...
[ "0.5906377", "0.52453035", "0.5175279", "0.51635957", "0.51350826", "0.5121694", "0.5097551", "0.50642985", "0.5053005", "0.50115776", "0.5006846", "0.4989256", "0.4967802", "0.4967802", "0.49592203", "0.49281752", "0.49254173", "0.4884338", "0.48837307", "0.48833853", "0.488...
0.0
-1
render multiple sets of primitives from array data, taking parameters from memory
func MultiDrawArraysIndirect(mode uint32, indirect unsafe.Pointer, drawcount int32, stride int32) { C.glowMultiDrawArraysIndirect(gpMultiDrawArraysIndirect, (C.GLenum)(mode), indirect, (C.GLsizei)(drawcount), (C.GLsizei)(stride)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func renderResults(vals []interface{}) Data {\n\tvar nilcount int\n\tvar obj interface{}\n\tfor _, val := range vals {\n\t\tswitch val.(type) {\n\t\tcase image.Image, Data:\n\t\t\tobj = val\n\t\tcase nil:\n\t\t\tnilcount++\n\t\t}\n\t}\n\tif obj != nil && nilcount == len(vals)-1 {\n\t\tswitch val := obj.(type) {\n\...
[ "0.588656", "0.54614055", "0.54295397", "0.5350041", "0.53137356", "0.53006786", "0.5282439", "0.5253161", "0.523419", "0.5211031", "0.5206587", "0.5203438", "0.5178633", "0.51602924", "0.5136783", "0.5103861", "0.5103528", "0.50965685", "0.50965685", "0.50513583", "0.5047180...
0.0
-1
render multiple sets of primitives by specifying indices of array data elements
func MultiDrawElements(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32) { C.glowMultiDrawElements(gpMultiDrawElements, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(drawcount)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (native *OpenGL) DrawElements(mode uint32, count int32, elementType uint32, indices uintptr) {\n\tgl.DrawElements(mode, count, elementType, unsafe.Pointer(indices)) // nolint: govet,gas\n}", "func MultiDrawElements(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32) {\n\tsysca...
[ "0.5861605", "0.5784999", "0.5747321", "0.57291377", "0.5687483", "0.5484014", "0.5482405", "0.54794174", "0.5470084", "0.5448841", "0.54251385", "0.5419804", "0.5397457", "0.52956325", "0.52938634", "0.5274171", "0.52344435", "0.52344435", "0.5221605", "0.51766086", "0.51731...
0.53663975
14
render multiple sets of primitives by specifying indices of array data elements and an index to apply to each index
func MultiDrawElementsBaseVertex(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32, basevertex *int32) { C.glowMultiDrawElementsBaseVertex(gpMultiDrawElementsBaseVertex, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(drawcount), (*C.GLint)(unsafe.Pointer(basevertex))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (native *OpenGL) DrawElements(mode uint32, count int32, elementType uint32, indices uintptr) {\n\tgl.DrawElements(mode, count, elementType, unsafe.Pointer(indices)) // nolint: govet,gas\n}", "func DrawElements(mode uint32, count int32, xtype uint32, indices unsafe.Pointer) {\n C.glowDrawElements(gpDrawElem...
[ "0.5799086", "0.5615862", "0.5611049", "0.5590899", "0.55510855", "0.5539775", "0.54828286", "0.5362288", "0.5360491", "0.52815163", "0.52697814", "0.52682126", "0.52682126", "0.5238092", "0.5219102", "0.51847696", "0.5143207", "0.5143207", "0.5132846", "0.50818354", "0.50717...
0.47146812
52
render indexed primitives from array data, taking parameters from memory
func MultiDrawElementsIndirect(mode uint32, xtype uint32, indirect unsafe.Pointer, drawcount int32, stride int32) { C.glowMultiDrawElementsIndirect(gpMultiDrawElementsIndirect, (C.GLenum)(mode), (C.GLenum)(xtype), indirect, (C.GLsizei)(drawcount), (C.GLsizei)(stride)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (obj *Device) DrawIndexedPrimitive(\n\ttyp PRIMITIVETYPE,\n\tbaseVertexIndex int,\n\tminIndex uint,\n\tnumVertices uint,\n\tstartIndex uint,\n\tprimitiveCount uint,\n) Error {\n\tret, _, _ := syscall.Syscall9(\n\t\tobj.vtbl.DrawIndexedPrimitive,\n\t\t7,\n\t\tuintptr(unsafe.Pointer(obj)),\n\t\tuintptr(typ),\n\...
[ "0.58143914", "0.5476799", "0.5437336", "0.5236039", "0.5156183", "0.50605226", "0.5040222", "0.5035074", "0.49717593", "0.49628866", "0.49624538", "0.49329838", "0.49272525", "0.49233818", "0.4923174", "0.4923174", "0.4904283", "0.48979342", "0.48739874", "0.48523787", "0.48...
0.0
-1
creates and initializes a buffer object's data store
func NamedBufferData(buffer uint32, size int, data unsafe.Pointer, usage uint32) { C.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func newBuffer() *buffer {\n\treturn &buffer{\n\t\tdata: make([]byte, 0),\n\t\tlen: 0,\n\t\tpkg: nil,\n\t\tconn: nil,\n\t\tpkgCh: make(chan *pkg),\n\t\tevCh: make(chan *pkg),\n\t\terrCh: make(chan error, 1),\n\t}\n}", "func newBuffer(buf []byte) *Buffer {\n\treturn &Buffer{data: buf}\n}", "func newDatab...
[ "0.6452763", "0.62074417", "0.6085602", "0.6062877", "0.60546154", "0.6051158", "0.6039646", "0.6039385", "0.60212064", "0.593024", "0.58833855", "0.5863987", "0.58623064", "0.58622515", "0.58257276", "0.5825609", "0.5809823", "0.57785004", "0.5771321", "0.5759343", "0.575547...
0.0
-1
creates and initializes a buffer object's immutable data store
func NamedBufferStorage(buffer uint32, size int, data unsafe.Pointer, flags uint32) { C.glowNamedBufferStorage(gpNamedBufferStorage, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func newBuffer() *buffer {\n\treturn &buffer{\n\t\tdata: make([]byte, 0),\n\t\tlen: 0,\n\t\tpkg: nil,\n\t\tconn: nil,\n\t\tpkgCh: make(chan *pkg),\n\t\tevCh: make(chan *pkg),\n\t\terrCh: make(chan error, 1),\n\t}\n}", "func newBuffer(b []byte) *buffer {\n\treturn &buffer{proto.NewBuffer(b), 0}\n}", "fun...
[ "0.6349263", "0.6268834", "0.6243279", "0.6195426", "0.61694556", "0.601713", "0.5932492", "0.5875461", "0.5873252", "0.58522457", "0.5843238", "0.58288723", "0.5812875", "0.568097", "0.5639489", "0.56271803", "0.5614063", "0.5613734", "0.5606573", "0.55912125", "0.5575135", ...
0.0
-1
Parameter clientBuffer has type C.GLeglClientBufferEXT.
func NamedBufferStorageExternalEXT(buffer uint32, offset int, size int, clientBuffer unsafe.Pointer, flags uint32) { C.glowNamedBufferStorageExternalEXT(gpNamedBufferStorageExternalEXT, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), (C.GLeglClientBufferEXT)(clientBuffer), (C.GLbitfield)(flags)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TexBuffer(target uint32, internalformat uint32, buffer uint32) {\n C.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))\n}", "func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) {\n\tC.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (...
[ "0.6129524", "0.6076844", "0.6076844", "0.605947", "0.605947", "0.59893376", "0.5952124", "0.59304", "0.59304", "0.5906616", "0.58735174", "0.58511", "0.5824264", "0.5824264", "0.5819625", "0.5819625", "0.5741683", "0.5729403", "0.5707841", "0.5707841", "0.56797343", "0.566...
0.5158884
59
updates a subset of a buffer object's data store
func NamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) { C.glowNamedBufferSubData(gpNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *CompactableBuffer) Update(address *EntryAddress, data []byte) error {\n\taddress.LockForWrite()\n\tdefer address.UnlockWrite()\n\theader, err := b.ReadHeader(address)\n\tif err != nil {\n\t\treturn err\n\t}\n\tbeforeUpdataDataSize := header.dataSize\n\tafterUpdateDataSize := len(data) + VarIntSize(len(dat...
[ "0.61363894", "0.55746704", "0.55625856", "0.55297506", "0.5502453", "0.54961836", "0.5488957", "0.5467326", "0.54561", "0.54425097", "0.5409052", "0.53852016", "0.5373626", "0.5347997", "0.52788514", "0.52782774", "0.52771676", "0.5224479", "0.5222405", "0.5214", "0.520048",...
0.0
-1
specify which color buffers are to be drawn into
func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) { C.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func DrawBuffers(n int32, bufs *uint32) {\n C.glowDrawBuffers(gpDrawBuffers, (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs)))\n}", "func DrawBuffer(mode uint32) {\n C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(mode))\n}", "func (f *Framebuffer) Paint(r vnclib.Rectangle, colors []vnclib.Color) {\n\tif glog.V(4...
[ "0.602377", "0.59869295", "0.5963311", "0.59032893", "0.5872589", "0.58582133", "0.58195484", "0.58195484", "0.5760336", "0.5678843", "0.56414473", "0.56365794", "0.56333274", "0.56167203", "0.5505331", "0.5504353", "0.5503617", "0.54833513", "0.54690176", "0.54690176", "0.54...
0.0
-1
Specifies a list of color buffers to be drawn into
func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) { C.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Framebuffer) Paint(r vnclib.Rectangle, colors []vnclib.Color) {\n\tif glog.V(4) {\n\t\tglog.Info(venuelib.FnNameWithArgs(r.String(), \"colors\"))\n\t}\n\t// TODO(kward): Implement double or triple buffering to reduce paint\n\t// interference.\n\tfor x := 0; x < int(r.Width); x++ {\n\t\tfor y := 0; y < int...
[ "0.61454105", "0.61440235", "0.60909224", "0.59685224", "0.5965276", "0.5949", "0.5949", "0.59418094", "0.5908199", "0.5908036", "0.5782449", "0.578063", "0.57642007", "0.57231736", "0.5668462", "0.5654153", "0.56223226", "0.5614668", "0.5614668", "0.55978715", "0.55978715", ...
0.5488479
25
set a named parameter of a framebuffer object
func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) { C.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tsyscall.Syscall(gpNamedFramebufferParameteri, 3, uintptr(framebuffer), uintptr(pname), uintptr(param))\n}", "func (t Texture3D) SetParameter(paramName uint32, param int32) {\n\tt.Bind()\n\tgl.TexParameteri(gl.TEXTURE_3D, paramNam...
[ "0.6607994", "0.6322477", "0.62866694", "0.62609506", "0.61261916", "0.59485966", "0.5854527", "0.5854527", "0.5809548", "0.5750729", "0.572978", "0.572978", "0.5721515", "0.5720505", "0.5703115", "0.5621067", "0.56060416", "0.5551461", "0.5527168", "0.5496869", "0.5496869", ...
0.6318116
3
select a color buffer source for pixels
func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) { C.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func SelectBuffer(size int32, buffer *uint32) {\n C.glowSelectBuffer(gpSelectBuffer, (C.GLsizei)(size), (*C.GLuint)(unsafe.Pointer(buffer)))\n}", "func SelectBuffer(size int32, buffer *uint32) {\n\tC.glowSelectBuffer(gpSelectBuffer, (C.GLsizei)(size), (*C.GLuint)(unsafe.Pointer(buffer)))\n}", "func ReadBuffer...
[ "0.6068057", "0.5763617", "0.57270753", "0.57270753", "0.5656174", "0.54879344", "0.5338901", "0.5296984", "0.52896583", "0.52872366", "0.5283478", "0.52303445", "0.52246875", "0.52222335", "0.5191319", "0.51414114", "0.5134801", "0.5116785", "0.5074263", "0.5053044", "0.4991...
0.4893914
30
attach a renderbuffer as a logical buffer of a framebuffer object
func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { C.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Framebuffer) Renderbuffer(attachment gfx.FramebufferAttachment, buf gfx.Renderbuffer) {\n\tf.useState()\n\tf.ctx.O.Call(\n\t\t\"framebufferTexture2D\",\n\t\tf.ctx.FRAMEBUFFER,\n\t\tf.ctx.Enums[int(attachment)],\n\t\tf.ctx.RENDERBUFFER,\n\t\tbuf.Object().(*js.Object),\n\t\t0,\n\t)\n}", "func FramebufferR...
[ "0.77140707", "0.727492", "0.7183856", "0.7163278", "0.70613325", "0.7029213", "0.69460857", "0.69198567", "0.69198567", "0.6916873", "0.68896997", "0.6797278", "0.6751622", "0.6735318", "0.6734214", "0.6733123", "0.6629343", "0.6621128", "0.66165966", "0.66085124", "0.65327"...
0.56367624
90
attach a single layer of a texture object as a logical buffer of a framebuffer object
func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) { C.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) {\n C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer))\n}", "func FramebufferTexture(target uint32, ...
[ "0.6999422", "0.69956523", "0.6836164", "0.67319816", "0.672857", "0.66928315", "0.6643474", "0.6643474", "0.66231644", "0.66231644", "0.65470356", "0.64222467", "0.63398826", "0.6331119", "0.63202375", "0.63202375", "0.6300761", "0.6292015", "0.62779385", "0.6229411", "0.621...
0.5804017
54
establish data storage, format and dimensions of a renderbuffer object's image
func NamedRenderbufferStorage(renderbuffer uint32, internalformat uint32, width int32, height int32) { C.glowNamedRenderbufferStorage(gpNamedRenderbufferStorage, (C.GLuint)(renderbuffer), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n C.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func RenderbufferStorage(target uint32, internalformat uint32, width int32...
[ "0.5998305", "0.58400124", "0.5705627", "0.5702508", "0.5666278", "0.56230754", "0.56207895", "0.5602298", "0.5602298", "0.5592833", "0.55329335", "0.5517138", "0.551079", "0.549668", "0.5485291", "0.54749393", "0.5390986", "0.53616107", "0.53538954", "0.5349218", "0.5310649"...
0.5047612
44
establish data storage, format, dimensions and sample count of a renderbuffer object's image
func NamedRenderbufferStorageMultisample(renderbuffer uint32, samples int32, internalformat uint32, width int32, height int32) { C.glowNamedRenderbufferStorageMultisample(gpNamedRenderbufferStorageMultisample, (C.GLuint)(renderbuffer), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) {\n C.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height))\n}", "func RenderbufferStorage(target Enum, internalformat Enum, width Sizei, he...
[ "0.6029619", "0.5719552", "0.5705418", "0.56924033", "0.56395096", "0.5618975", "0.5618975", "0.55995035", "0.5489016", "0.53760284", "0.53604287", "0.5332098", "0.5273535", "0.5263664", "0.5249539", "0.5241155", "0.51979065", "0.5148246", "0.5137379", "0.5113538", "0.510561"...
0.0
-1
create or replace a display list
func NewList(list uint32, mode uint32) { C.glowNewList(gpNewList, (C.GLuint)(list), (C.GLenum)(mode)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func createDisplaysList(e *Elevator) {\n\tdisplay := newDisplay(1, displayOn, 1)\n\te.floorDisplaysList = append(e.floorDisplaysList, *display)\n\tfor i := e.column.minFloor; i <= e.column.maxFloor; i++ {\n\t\tdisplay = newDisplay(i, displayOn, i)\n\t\te.floorDisplaysList = append(e.floorDisplaysList, *display)\n\...
[ "0.63825405", "0.6013778", "0.5855815", "0.5609792", "0.54711187", "0.541456", "0.5395596", "0.53566885", "0.527666", "0.5263921", "0.52556235", "0.5244852", "0.51780784", "0.5148643", "0.5061043", "0.50426114", "0.5038283", "0.5013533", "0.5011656", "0.49866888", "0.49732983...
0.0
-1
define an array of normals
func NormalPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { C.glowNormalPointer(gpNormalPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Normal(a [100][100]float64, b [100]float64, m int32) {\n\tvar i, j int32\n\tvar big float64\n\n\tfor i = 0; i < m; i++ {\n\t\tbig = 0.0\n\n\t\tfor j = 0; j < m; j++ {\n\t\t\tif big < math.Abs(a[i][j]) {\n\t\t\t\tbig = math.Abs(a[i][j])\n\t\t\t}\n\t\t}\n\n\t\tfor j = 0; j < m; j++ {\n\t\t\ta[i][j] = a[i][j] / ...
[ "0.60351044", "0.589565", "0.58394325", "0.5808904", "0.5757458", "0.56112206", "0.5609545", "0.5499453", "0.5355278", "0.526311", "0.5236602", "0.5229515", "0.5133886", "0.4951735", "0.48658308", "0.485038", "0.48271272", "0.48121497", "0.4797551", "0.4779746", "0.47541413",...
0.0
-1
label a named object identified within a namespace
func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) { C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) {\n\tsyscall.Syscall6(gpObjectLabel, 4, uintptr(identifier), uintptr(name), uintptr(length), uintptr(unsafe.Pointer(label)), 0, 0)\n}", "func (api *objectAPI) Label(obj *api.Label) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err ...
[ "0.67744076", "0.6563606", "0.6442182", "0.63694155", "0.63467276", "0.6293929", "0.6173011", "0.617141", "0.611636", "0.6076318", "0.603768", "0.60299015", "0.5996577", "0.595825", "0.59285295", "0.5907533", "0.58909935", "0.5884448", "0.58744997", "0.5868947", "0.5868347", ...
0.6274733
7
label a sync object identified by a pointer
func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) { C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) {\n\tsyscall.Syscall(gpObjectPtrLabel, 3, uintptr(ptr), uintptr(length), uintptr(unsafe.Pointer(label)))\n}", "func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *int8) {\n C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length...
[ "0.6950776", "0.6672603", "0.6315552", "0.60750383", "0.6066214", "0.60471725", "0.6046042", "0.5971814", "0.5971814", "0.5892775", "0.5892775", "0.5747266", "0.5720918", "0.5696668", "0.5656469", "0.56403005", "0.5635596", "0.5559489", "0.55570877", "0.546876", "0.5414075", ...
0.66300714
3
multiply the current matrix with an orthographic matrix
func Ortho(left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { C.glowOrtho(gpOrtho, (C.GLdouble)(left), (C.GLdouble)(right), (C.GLdouble)(bottom), (C.GLdouble)(top), (C.GLdouble)(zNear), (C.GLdouble)(zFar)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MatrixOrtho(left, right, bottom, top, near, far float32) Matrix {\n\tvar result Matrix\n\n\trl := right - left\n\ttb := top - bottom\n\tfn := far - near\n\n\tresult.M0 = 2.0 / rl\n\tresult.M1 = 0.0\n\tresult.M2 = 0.0\n\tresult.M3 = 0.0\n\tresult.M4 = 0.0\n\tresult.M5 = 2.0 / tb\n\tresult.M6 = 0.0\n\tresult.M7...
[ "0.61465484", "0.6131196", "0.5884769", "0.5633606", "0.5584747", "0.53963184", "0.525027", "0.52124923", "0.51904577", "0.50934064", "0.50872725", "0.5082984", "0.5078852", "0.50402695", "0.50176233", "0.50016457", "0.4943797", "0.49141926", "0.48892382", "0.4847114", "0.482...
0.0
-1
place a marker in the feedback buffer
func PassThrough(token float32) { C.glowPassThrough(gpPassThrough, (C.GLfloat)(token)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (e *ObservableEditableBuffer) Mark(seq int) {\n\te.f.Mark()\n\te.seq = seq\n}", "func (timer *XTimer) Mark(tag string) {\n\tnow := time.Now().UnixNano()\n\tdelta := float64(now - timer.latestTime)\n\tpoint := &MarkPoint{\n\t\ttag: tag,\n\t\tdelta: delta,\n\t}\n\ttimer.latestTime = now\n\ttimer.points = ap...
[ "0.66130394", "0.5892119", "0.54118264", "0.5340349", "0.5328326", "0.52502906", "0.5204639", "0.5170648", "0.5158217", "0.51402795", "0.5088688", "0.5080234", "0.50310963", "0.50295633", "0.5025763", "0.50248784", "0.50106835", "0.50103617", "0.50031745", "0.5001797", "0.500...
0.0
-1
specifies the parameters for patch primitives
func PatchParameteri(pname uint32, value int32) { C.glowPatchParameteri(gpPatchParameteri, (C.GLenum)(pname), (C.GLint)(value)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Client) patch(rawURL string, authenticate bool, expectedStatus int, in interface{}, out interface{}) error {\n\terr := c.do(rawURL, \"PATCH\", authenticate, expectedStatus, in, out)\n\treturn errio.Error(err)\n}", "func Patch() int {\n\treturn patch\n}", "func PatchParameteri(pname uint32, value int32...
[ "0.62402534", "0.61877155", "0.6032005", "0.59996474", "0.5926835", "0.592449", "0.5880058", "0.579319", "0.5792935", "0.57902384", "0.57578284", "0.5726518", "0.5697806", "0.56827646", "0.56526625", "0.5620683", "0.5607507", "0.56057024", "0.56056166", "0.5601641", "0.558995...
0.5559666
22
pause transform feedback operations
func PauseTransformFeedback() { C.glowPauseTransformFeedback(gpPauseTransformFeedback) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PauseTransformFeedback() {\n C.glowPauseTransformFeedback(gpPauseTransformFeedback)\n}", "func PAUSE() { ctx.PAUSE() }", "func PauseTransformFeedback() {\n\tsyscall.Syscall(gpPauseTransformFeedback, 0, 0, 0, 0)\n}", "func pause() tea.Msg {\n\ttime.Sleep(time.Millisecond * 600)\n\treturn DoneMsg{}\n}", ...
[ "0.64732456", "0.6374028", "0.59985703", "0.5946686", "0.57284206", "0.55461264", "0.55041975", "0.5480023", "0.5430506", "0.54232055", "0.53961205", "0.53961205", "0.53875226", "0.5371025", "0.53265905", "0.5313194", "0.5306876", "0.5282202", "0.52798045", "0.52267754", "0.5...
0.5880575
5
set pixel storage modes
func PixelStorei(pname uint32, param int32) { C.glowPixelStorei(gpPixelStorei, (C.GLenum)(pname), (C.GLint)(param)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Bcm2835_spi_setDataMode(Mode byte) {\n\tcMode, _ := (C.uint8_t)(Mode), cgoAllocsUnknown\n\tC.bcm2835_spi_setDataMode(cMode)\n}", "func (gbc *GomeboyColor) setHardwareMode(isColor bool) {\n\tif isColor {\n\t\tgbc.cpu.R.A = 0x11\n\t\tgbc.gpu.RunningColorGBHardware = gbc.mmu.IsCartridgeColor()\n\t\tgbc.mmu.Run...
[ "0.53576237", "0.5322374", "0.5274655", "0.5273496", "0.5212715", "0.5152814", "0.5145573", "0.5082095", "0.50106245", "0.49678805", "0.49541643", "0.49476367", "0.48985445", "0.489562", "0.48617205", "0.4840752", "0.48168546", "0.4816795", "0.48006248", "0.4795217", "0.47521...
0.0
-1
specify the pixel zoom factors
func PixelZoom(xfactor float32, yfactor float32) { C.glowPixelZoom(gpPixelZoom, (C.GLfloat)(xfactor), (C.GLfloat)(yfactor)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PixelZoom(xfactor float32, yfactor float32) {\n C.glowPixelZoom(gpPixelZoom, (C.GLfloat)(xfactor), (C.GLfloat)(yfactor))\n}", "func PixelZoom(xfactor float32, yfactor float32) {\n\tsyscall.Syscall(gpPixelZoom, 2, uintptr(math.Float32bits(xfactor)), uintptr(math.Float32bits(yfactor)), 0)\n}", "func Scale(...
[ "0.7620284", "0.7229312", "0.6994161", "0.632281", "0.6245468", "0.6168897", "0.59914464", "0.58316785", "0.5804397", "0.55369234", "0.5508602", "0.5482765", "0.5473459", "0.54622185", "0.5448507", "0.54473126", "0.53862494", "0.5375114", "0.5372329", "0.5305802", "0.5275662"...
0.7009906
2
specify the diameter of rasterized points
func PointSize(size float32) { C.glowPointSize(gpPointSize, (C.GLfloat)(size)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c circle) methodDiameter() int {\n\treturn c.radius * 2\n}", "func Dimen(c canvas, xp, yp, sp float64) (x, y, s float64) {\n\tx = (xp / 100) * float64(c.Width)\n\ty = (yp / 100) * float64(c.Height)\n\ts = (sp / 100) * float64(c.Width)\n\treturn\n}", "func (w *LDRWrapper) Size() int {\n\treturn w.Bounds()...
[ "0.54266196", "0.52950555", "0.52080727", "0.51301914", "0.50911796", "0.50345653", "0.50208837", "0.49921605", "0.49690863", "0.49007654", "0.4881917", "0.48346436", "0.47907463", "0.47518173", "0.4751527", "0.47513434", "0.47317082", "0.47248155", "0.46796593", "0.46615195", ...
0.48797992
12
select a polygon rasterization mode
func PolygonMode(face uint32, mode uint32) { C.glowPolygonMode(gpPolygonMode, (C.GLenum)(face), (C.GLenum)(mode)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PolygonMode(face uint32, mode uint32) {\n C.glowPolygonMode(gpPolygonMode, (C.GLenum)(face), (C.GLenum)(mode))\n}", "func PolygonMode(face uint32, mode uint32) {\n\tsyscall.Syscall(gpPolygonMode, 2, uintptr(face), uintptr(mode), 0)\n}", "func (native *OpenGL) PolygonMode(face uint32, mode uint32) {\n\tgl...
[ "0.6919152", "0.6893959", "0.65704346", "0.6379355", "0.57647014", "0.5743732", "0.5730423", "0.56987244", "0.5472931", "0.5318191", "0.5272084", "0.5144626", "0.51434165", "0.5122657", "0.5079967", "0.50327384", "0.50296843", "0.50275695", "0.49617174", "0.4942237", "0.49104...
0.6604887
3
set the scale and units used to calculate depth values
func PolygonOffset(factor float32, units float32) { C.glowPolygonOffset(gpPolygonOffset, (C.GLfloat)(factor), (C.GLfloat)(units)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (tr *trooper) setScale(scale float64) { tr.part.SetScale(scale, scale, scale) }", "func (t *Tree) Scale(s float32) {\n\tif t.Leaf != nil {\n\t\tfor i, x := range t.Leaf.OutputDelta {\n\t\t\tt.Leaf.OutputDelta[i] = x * s\n\t\t}\n\t} else {\n\t\tt.Branch.FalseBranch.Scale(s)\n\t\tt.Branch.TrueBranch.Scale(s)\...
[ "0.5953051", "0.5782099", "0.5592689", "0.5478918", "0.5475763", "0.5397865", "0.5370801", "0.5360635", "0.5354044", "0.5284855", "0.5265641", "0.5252814", "0.5225897", "0.5223125", "0.520359", "0.5150167", "0.5144686", "0.5120575", "0.51115435", "0.51027197", "0.5099922", ...
0.0
-1
set the polygon stippling pattern
func PolygonStipple(mask *uint8) { C.glowPolygonStipple(gpPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PolygonStipple(mask *uint8) {\n\tsyscall.Syscall(gpPolygonStipple, 1, uintptr(unsafe.Pointer(mask)), 0, 0)\n}", "func (el *Fill) Polygon() {}", "func (s *Surface) StylePattern(t DrawType, p Pattern) {\n\tif p.Type == \"\" {\n\t\tp.Type = RepeatXY\n\t}\n\tpat := s.Ctx.Call(\"createPattern\", p.Source.Canva...
[ "0.5638292", "0.5576568", "0.5436507", "0.5368226", "0.5366266", "0.5303373", "0.5222189", "0.5166519", "0.5076445", "0.50755554", "0.50195706", "0.5000205", "0.4984429", "0.49822146", "0.49661428", "0.4896016", "0.4879233", "0.48724705", "0.483172", "0.48315576", "0.482566",...
0.51751536
7
pop the active debug group
func PopDebugGroup() { C.glowPopDebugGroup(gpPopDebugGroup) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PopDebugGroup() {\n\tsyscall.Syscall(gpPopDebugGroup, 0, 0, 0, 0)\n}", "func PopDebugGroup() {\n C.glowPopDebugGroup(gpPopDebugGroup)\n}", "func RestoreForegroundGroup() {\n\tif group == ForegroundGroup() {\n\t\treturn\n\t}\n\n\tSetForegroundGroup(group)\n}", "func (s *BasePlSqlParserListener) ExitLibr...
[ "0.8235275", "0.7928944", "0.5345466", "0.5344072", "0.52889436", "0.52754337", "0.5265217", "0.5236283", "0.52260923", "0.5212983", "0.52015", "0.5184811", "0.5170799", "0.512836", "0.51194507", "0.5111059", "0.50622296", "0.5037767", "0.5034207", "0.49798647", "0.49658376",...
0.78050977
3
specify the primitive restart index
func PrimitiveRestartIndex(index uint32) { C.glowPrimitiveRestartIndex(gpPrimitiveRestartIndex, (C.GLuint)(index)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PrimitiveRestartIndex(index uint32) {\n C.glowPrimitiveRestartIndex(gpPrimitiveRestartIndex, (C.GLuint)(index))\n}", "func (proc_status *ProcStatus) IncrRestart() {\n\tproc_status.Restarts++\n}", "func (m *DeviceHealthAttestationState) SetRestartCount(value *int64)() {\n err := m.GetBackingStore().Set...
[ "0.75042564", "0.6513786", "0.6151376", "0.5413822", "0.5402964", "0.53925467", "0.5354168", "0.51798", "0.51774615", "0.5160603", "0.51575506", "0.51270556", "0.509853", "0.5096893", "0.50675863", "0.50572634", "0.505711", "0.5055703", "0.5042089", "0.5008453", "0.4996636", ...
0.72193307
2
set texture residence priority
func PrioritizeTextures(n int32, textures *uint32, priorities *float32) { C.glowPrioritizeTextures(gpPrioritizeTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLfloat)(unsafe.Pointer(priorities))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PrioritizeTextures(n int32, textures *uint32, priorities *float32) {\n C.glowPrioritizeTextures(gpPrioritizeTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLfloat)(unsafe.Pointer(priorities)))\n}", "func PrioritizeTextures(n int32, textures *uint32, priorities *float32) {\n\tsyscall.S...
[ "0.596955", "0.59046215", "0.52260256", "0.51892644", "0.50928843", "0.48873568", "0.48292565", "0.48202685", "0.47728", "0.4742732", "0.47071686", "0.47068322", "0.46641707", "0.46532208", "0.46532208", "0.46457013", "0.46139172", "0.45878053", "0.4560443", "0.45182702", "0....
0.5674935
2
load a program object with a program binary
func ProgramBinary(program uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) { C.glowProgramBinary(gpProgramBinary, (C.GLuint)(program), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Chip8) LoadProgram(prog string) {\n\tprogFile, err := os.Open(prog)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t_, err = progFile.Read(c.memory[progStart:])\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}", "func (ip *Interpreter) Load(prog []byte) {\n\tcopy(ip.memory[memoryOffsetProgram:], prog)\n}", "func...
[ "0.70892036", "0.69508004", "0.66458416", "0.65731376", "0.6112255", "0.59849906", "0.59597445", "0.5928969", "0.59015036", "0.5862646", "0.5851017", "0.5848486", "0.5829028", "0.5814285", "0.57555217", "0.573734", "0.56857157", "0.56596124", "0.5624457", "0.5588231", "0.5581...
0.5603798
20
specify a parameter for a program object
func ProgramParameteri(program uint32, pname uint32, value int32) { C.glowProgramParameteri(gpProgramParameteri, (C.GLuint)(program), (C.GLenum)(pname), (C.GLint)(value)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ProgramParameteri(program uint32, pname uint32, value int32) {\n\tsyscall.Syscall(gpProgramParameteri, 3, uintptr(program), uintptr(pname), uintptr(value))\n}", "func (m *ProgramControl) SetProgram(value Programable)() {\n err := m.GetBackingStore().Set(\"program\", value)\n if err != nil {\n p...
[ "0.62678206", "0.5989248", "0.56628054", "0.55927986", "0.5564994", "0.55450314", "0.53872466", "0.53594196", "0.5359206", "0.5330904", "0.5302828", "0.52861834", "0.52337784", "0.52323073", "0.52216554", "0.51981676", "0.51938117", "0.5186575", "0.5183584", "0.5181039", "0.5...
0.5767469
3
Specify the value of a uniform variable for a specified program object
func ProgramUniform1f(program uint32, location int32, v0 float32) { C.glowProgramUniform1f(gpProgramUniform1f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596244", "0.65417147", "0.6461359", "0.644842", "0.64406013", "0.6411922", "0.63519603", "0.6340269", "0.6338394", "0.631641", "0.630704", "0.6295751", "0.6286016", "0.6283217", "0.6257883", "0.6256306", "0.6242154", "0.61727124", "0.6163814", "0.61348826", "0.6133831", ...
0.0
-1
Specify the value of a uniform variable for a specified program object
func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) { C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.574635
72
Specify the value of a uniform variable for a specified program object
func ProgramUniform1i(program uint32, location int32, v0 int32) { C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.56845397
85
Specify the value of a uniform variable for a specified program object
func ProgramUniform1iv(program uint32, location int32, count int32, value *int32) { C.glowProgramUniform1iv(gpProgramUniform1iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.5787795
61
Specify the value of a uniform variable for a specified program object
func ProgramUniform1ui(program uint32, location int32, v0 uint32) { C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596244", "0.65417147", "0.6461359", "0.644842", "0.64406013", "0.6411922", "0.63519603", "0.6340269", "0.6338394", "0.631641", "0.630704", "0.6295751", "0.6286016", "0.6283217", "0.6257883", "0.6256306", "0.6242154", "0.61727124", "0.6163814", "0.61348826", "0.6133831", ...
0.59272635
40
Specify the value of a uniform variable for a specified program object
func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) { C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.5994685
27
Specify the value of a uniform variable for a specified program object
func ProgramUniform2f(program uint32, location int32, v0 float32, v1 float32) { C.glowProgramUniform2f(gpProgramUniform2f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.0
-1
Specify the value of a uniform variable for a specified program object
func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) { C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.0
-1
Specify the value of a uniform variable for a specified program object
func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) { C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596244", "0.65417147", "0.6461359", "0.644842", "0.64406013", "0.6411922", "0.63519603", "0.6340269", "0.6338394", "0.631641", "0.630704", "0.6295751", "0.6286016", "0.6283217", "0.6257883", "0.6256306", "0.6242154", "0.61727124", "0.6163814", "0.61348826", "0.6133831", ...
0.0
-1
Specify the value of a uniform variable for a specified program object
func ProgramUniform2iv(program uint32, location int32, count int32, value *int32) { C.glowProgramUniform2iv(gpProgramUniform2iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.0
-1
Specify the value of a uniform variable for a specified program object
func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) { C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.5941445
36
Specify the value of a uniform variable for a specified program object
func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) { C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.58831745
47
Specify the value of a uniform variable for a specified program object
func ProgramUniform3f(program uint32, location int32, v0 float32, v1 float32, v2 float32) { C.glowProgramUniform3f(gpProgramUniform3f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596244", "0.65417147", "0.6461359", "0.644842", "0.64406013", "0.6411922", "0.63519603", "0.6340269", "0.6338394", "0.631641", "0.630704", "0.6295751", "0.6286016", "0.6283217", "0.6257883", "0.6256306", "0.6242154", "0.61727124", "0.6163814", "0.61348826", "0.6133831", ...
0.57115656
79
Specify the value of a uniform variable for a specified program object
func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) { C.glowProgramUniform3fv(gpProgramUniform3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func ProgramUniform3ui(program uint32, location int32, v0 uint32, v...
[ "0.74596703", "0.6542257", "0.6461325", "0.64492404", "0.64413136", "0.64122504", "0.63523656", "0.6340831", "0.63384855", "0.6316857", "0.6307855", "0.6295642", "0.6285599", "0.6283731", "0.62582535", "0.6256287", "0.6242904", "0.61734796", "0.61641574", "0.61352617", "0.613...
0.5885659
45