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
flag edges as either boundary or nonboundary
func EdgeFlag(flag bool) { C.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Asteroid) checkEdges() {\n\t//Right bound\n\tif s.x > 1 {\n\t\ts.getPoints()\n\t\ts.points = TranslatePoints(s.points, -2, 0)\n\t\ts.points = RotatePoints(s.points, s.rot, s.x, s.y)\n\t\ts.x = -1\n\t} else if s.x < -1 { //Left bound\n\t\ts.getPoints()\n\t\ts.points = TranslatePoints(s.points, 2, 0)\n\t\ts...
[ "0.59372705", "0.59209204", "0.57908046", "0.5732857", "0.56283253", "0.5490028", "0.5483679", "0.539988", "0.5217315", "0.52053434", "0.5135416", "0.510351", "0.50243604", "0.4981083", "0.49553952", "0.49409282", "0.4915121", "0.49124599", "0.4893574", "0.48847574", "0.48722...
0.5192578
10
define an array of edge flags
func EdgeFlagPointer(stride int32, pointer unsafe.Pointer) { C.glowEdgeFlagPointer(gpEdgeFlagPointer, (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func EdgeFlag(flag bool) {\n C.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag)))\n}", "func EdgeFlag(flag bool) {\n\tsyscall.Syscall(gpEdgeFlag, 1, boolToUintptr(flag), 0, 0)\n}", "func EdgeFlag(flag bool) {\n\tC.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag)))\n}", "func EdgeFlagPointer(stri...
[ "0.6406766", "0.6078242", "0.58935267", "0.5498641", "0.5263787", "0.5128917", "0.51081204", "0.50732446", "0.50115794", "0.49815664", "0.4882112", "0.48035008", "0.48003155", "0.47902435", "0.4789387", "0.47597414", "0.4741289", "0.47278187", "0.47019792", "0.467737", "0.465...
0.5316267
4
enable or disable serverside GL capabilities
func Enable(cap uint32) { C.glowEnable(gpEnable, (C.GLenum)(cap)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Disable(cap GLenum) {\n\tC.glDisable(C.GLenum(cap))\n}", "func (native *OpenGL) Disable(capability uint32) {\n\tgl.Disable(capability)\n}", "func (native *OpenGL) Enable(capability uint32) {\n\tgl.Enable(capability)\n}", "func (gl *WebGL) Disable(option GLEnum) {\n\tgl.context.Call(\"disable\", option)\...
[ "0.6468122", "0.61833155", "0.590033", "0.5824449", "0.5807892", "0.5777913", "0.57632947", "0.57278407", "0.57182866", "0.5706954", "0.5523867", "0.5437685", "0.5250957", "0.5167954", "0.5126784", "0.50464684", "0.5010526", "0.4960154", "0.49447033", "0.48928162", "0.4879862...
0.46455085
50
enable or disable clientside capability
func EnableClientState(array uint32) { C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Enable(cap uint32) {\n\tsyscall.Syscall(gpEnable, 1, uintptr(cap), 0, 0)\n}", "func (client ConsoleClient) EnableConsoleResponder(resp *http.Response) (result SetDisabledResult, err error) {\n\terr = autorest.Respond(\n\t\tresp,\n\t\tclient.ByInspecting(),\n\t\tazure.WithErrorUnlessStatusCode(http.StatusOK)...
[ "0.6125523", "0.5817828", "0.5752881", "0.5581509", "0.54917", "0.5474488", "0.5467083", "0.54660404", "0.5397472", "0.5386843", "0.5357025", "0.5352737", "0.533552", "0.5305572", "0.5243636", "0.52306384", "0.51893723", "0.5186992", "0.5177265", "0.51600677", "0.512068", "...
0.0
-1
Enable or disable a generic vertex attribute array
func EnableVertexArrayAttrib(vaobj uint32, index uint32) { C.glowEnableVertexArrayAttrib(gpEnableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpEnableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func DisableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpDisableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func Disabl...
[ "0.7055345", "0.6763308", "0.66961026", "0.66961026", "0.636282", "0.62692064", "0.6207204", "0.6129912", "0.60076565", "0.60076565", "0.5986675", "0.59745425", "0.59459025", "0.59237194", "0.59237194", "0.5883715", "0.58829445", "0.5729264", "0.5729264", "0.57163274", "0.566...
0.6961801
2
Enable or disable a generic vertex attribute array
func EnableVertexAttribArray(index uint32) { C.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tsyscall.Syscall(gpEnableVertexArrayAttrib, 2, uintptr(vaobj), uintptr(index), 0)\n}", "func EnableVertexArrayAttrib(vaobj uint32, index uint32) {\n\tC.glowEnableVertexArrayAttrib(gpEnableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index))\n}", ...
[ "0.7055345", "0.6961801", "0.6961801", "0.6763308", "0.66961026", "0.66961026", "0.636282", "0.62692064", "0.6207204", "0.6129912", "0.60076565", "0.60076565", "0.5986675", "0.59745425", "0.59459025", "0.5883715", "0.58829445", "0.5729264", "0.5729264", "0.57163274", "0.56618...
0.59237194
16
create a new sync object and insert it into the GL command stream
func FenceSync(condition uint32, flags uint32) uintptr { ret := C.glowFenceSync(gpFenceSync, (C.GLenum)(condition), (C.GLbitfield)(flags)) return (uintptr)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewSynchronization()(*Synchronization) {\n m := &Synchronization{\n Entity: *NewEntity(),\n }\n return m\n}", "func NewSync(c *cli.Context) Sync {\n\treturn Sync{\n\t\tsrc: c.Args().Get(0),\n\t\tdst: c.Args().Get(1),\n\t\top: c.Command.Name,\n\t\tfullCommand: command...
[ "0.60239357", "0.5855572", "0.5668855", "0.5661526", "0.55634767", "0.5534644", "0.53730494", "0.5364802", "0.5363811", "0.53435385", "0.53191304", "0.5318778", "0.52644527", "0.5260147", "0.52400994", "0.52348626", "0.52263224", "0.522422", "0.51944906", "0.5178173", "0.5159...
0.0
-1
block until all GL execution is complete
func Finish() { C.glowFinish(gpFinish) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Finish() {\n\tC.glFinish()\n}", "func Finish() {\n\tgl.Finish()\n}", "func (w *windowImpl) drawLoop() {\n\truntime.LockOSThread()\nouter:\n\tfor {\n\t\tselect {\n\t\tcase <-w.winClose:\n\t\t\tbreak outer\n\t\tcase <-w.publish:\n\t\t\tw.app.RunOnMain(func() {\n\t\t\t\ttheGPU.UseContext(w)\n\t\t\t\tgl.Flush...
[ "0.6748293", "0.6580549", "0.5751512", "0.5665948", "0.56139517", "0.55800843", "0.5576034", "0.5544397", "0.55151343", "0.54702073", "0.5448769", "0.5341443", "0.5336991", "0.5335382", "0.53130394", "0.53106815", "0.5298889", "0.5234722", "0.52048284", "0.51613706", "0.51273...
0.52390337
18
force execution of GL commands in finite time
func Flush() { C.glowFlush(gpFlush) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func init() {\n\t// Locks the Execution in the main Thread as OpenGL is not thread Safe\n\truntime.LockOSThread()\n}", "func Flush() {\n\tgl.Flush()\n}", "func Flush() {\n\tC.glFlush()\n}", "func System(g gl.Context3, m *ecs.Manager) {\n\tg.ClearColor(1, 1, 1, 1)\n\tg.LineWidth(4)\n\tg.Enable(gl.CULL_FACE)\n...
[ "0.5767527", "0.55359477", "0.54727024", "0.5452484", "0.5451158", "0.54179674", "0.538449", "0.52706987", "0.52585995", "0.521503", "0.5182942", "0.51372504", "0.51308936", "0.50198334", "0.5010248", "0.50090015", "0.50075775", "0.50046235", "0.4973266", "0.49707347", "0.495...
0.0
-1
indicate modifications to a range of a mapped buffer
func FlushMappedBufferRange(target uint32, offset int, length int) { C.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n ret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n return (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int...
[ "0.70530194", "0.6992119", "0.6708913", "0.6708913", "0.6444576", "0.6429811", "0.6411439", "0.6302163", "0.6264214", "0.6229601", "0.60607624", "0.60607624", "0.59751076", "0.5904164", "0.58489573", "0.58489573", "0.57737243", "0.575936", "0.5747891", "0.5641713", "0.5622068...
0.6038323
13
indicate modifications to a range of a mapped buffer
func FlushMappedNamedBufferRange(buffer uint32, offset int, length int) { C.glowFlushMappedNamedBufferRange(gpFlushMappedNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer {\n ret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access))\n return (unsafe.Pointer)(ret)\n}", "func MapBufferRange(target uint32, offset int...
[ "0.7053556", "0.6992756", "0.67098945", "0.67098945", "0.6444555", "0.6430987", "0.6412343", "0.63017654", "0.62653726", "0.6228872", "0.6060882", "0.6060882", "0.6039474", "0.6039474", "0.59762096", "0.5904477", "0.5848679", "0.5848679", "0.5773223", "0.5760936", "0.57468927...
0.54957175
29
define an array of fog coordinates
func FogCoordPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { C.glowFogCoordPointer(gpFogCoordPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getcoordinates(quakes Quakes) [][]float64 {\n\tvar geomplaces [][]float64\n\tfor _, quake := range quakes.Features {\n\t\tpoint := []float64{quake.Geometry.Coordinates[1], quake.Geometry.Coordinates[0]}\n\t\tgeomplaces = append(geomplaces, point)\n\t}\n\treturn geomplaces\n}", "func genLocs(l int) []float64...
[ "0.5978854", "0.5606312", "0.55919766", "0.54744315", "0.5289683", "0.51993346", "0.4823338", "0.48125443", "0.47996283", "0.47277954", "0.47242686", "0.47241172", "0.46961117", "0.46889135", "0.46714833", "0.46628296", "0.462726", "0.46083412", "0.45947847", "0.45873848", "0...
0.49031332
6
set a named parameter of a framebuffer object
func FramebufferParameteri(target uint32, pname uint32, param int32) { C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (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.6318116", "0.6318116", "0.62866694", "0.62609506", "0.61261916", "0.59485966", "0.5854527", "0.5854527", "0.5809548", "0.5750729", "0.5721515", "0.5720505", "0.5703115", "0.5621067", "0.56060416", "0.5551461", "0.5527168", "0.5496869", "0.5496869"...
0.572978
13
attach a renderbuffer as a logical buffer of a framebuffer object
func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (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.6916873", "0.68896997", "0.6797278", "0.6751622", "0.6735318", "0.6734214", "0.6733123", "0.6629343", "0.6621128", "0.66165966", "0.66085124", "0.65327", "0.65182394", "0.65044194"...
0.69198567
8
attach a level of a texture object as a logical buffer of a framebuffer object
func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) { C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level ...
[ "0.722107", "0.6991932", "0.6818233", "0.66495353", "0.65578204", "0.65317065", "0.6469703", "0.6469703", "0.64009106", "0.63043094", "0.6283796", "0.6269056", "0.6269056", "0.6259122", "0.6230083", "0.6216283", "0.61891496", "0.61787057", "0.61467904", "0.61189765", "0.61189...
0.66802365
4
attach a level of a texture object as a logical buffer to the currently bound framebuffer object
func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) { C.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32) {\n C.glowFramebufferTexture(gpFramebufferTexture, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))\n}", "func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level ...
[ "0.69883555", "0.68194735", "0.66449696", "0.6440821", "0.6440821", "0.6405265", "0.63819826", "0.63745326", "0.6362165", "0.6339609", "0.63065445", "0.62801546", "0.62801546", "0.6174655", "0.61722314", "0.61722314", "0.617196", "0.6166744", "0.61656374", "0.6151749", "0.612...
0.5911891
35
attach a single layer of a texture object as a logical buffer of a framebuffer object
func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) { C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (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.66231644", "0.66231644", "0.65470356", "0.64222467", "0.63398826", "0.6331119", "0.63202375", "0.63202375", "0.6300761", "0.6292015", "0.62779385", "0.6229411", "0.62155825", "0.62018794", "0.6...
0.6643474
7
define front and backfacing polygons
func FrontFace(mode uint32) { C.glowFrontFace(gpFrontFace, (C.GLenum)(mode)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (el *Fill) Polygon() {}", "func (p plane) splitPolygon(poly polygon, coplanarFront, coplanarBack, front, back *[]polygon) {\n\tconst (\n\t\tcoplanarType = 0\n\t\tfrontType = 1\n\t\tbackType = 2\n\t\tspanningType = 3\n\t)\n\tpolygonType := 0\n\tvar types []int\n\tfor _, v := range poly.vertices {\n\t\...
[ "0.6460714", "0.61536455", "0.6091873", "0.59583706", "0.5954489", "0.593945", "0.5918873", "0.57108665", "0.56997734", "0.5620925", "0.56127876", "0.55298877", "0.5517866", "0.5508579", "0.5484753", "0.5468861", "0.5390357", "0.5390357", "0.5381658", "0.5367365", "0.53381383...
0.0
-1
multiply the current matrix by a perspective matrix
func Frustum(left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { C.glowFrustum(gpFrustum, (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 (matrix Matrix4) Mult(other Matrix4) Matrix4 {\n\n\tnewMat := NewMatrix4()\n\n\tnewMat[0][0] = matrix[0][0]*other[0][0] + matrix[0][1]*other[1][0] + matrix[0][2]*other[2][0] + matrix[0][3]*other[3][0]\n\tnewMat[1][0] = matrix[1][0]*other[0][0] + matrix[1][1]*other[1][0] + matrix[1][2]*other[2][0] + matrix[1][...
[ "0.63314277", "0.6007269", "0.5877208", "0.5765198", "0.5630044", "0.5614488", "0.5553634", "0.5526056", "0.54944146", "0.5476338", "0.54150695", "0.5394766", "0.5326779", "0.5324857", "0.5286266", "0.52782255", "0.5249348", "0.5241326", "0.5235981", "0.5140057", "0.5113416",...
0.0
-1
generate buffer object names
func GenBuffers(n int32, buffers *uint32) { C.glowGenBuffers(gpGenBuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*Object) Name() string { return \"object\" }", "func (g *grpc) objectNamed(name string) generator.Object {\n\tg.gen.RecordTypeUse(name)\n\treturn g.gen.ObjectNamed(name)\n}", "func generateObjectKey(threadIndex int, payloadSize uint64) string {\n\tvar key string\n\tkeyHash := sha1.Sum([]byte(fmt.Sprintf(...
[ "0.5780699", "0.5634668", "0.5622521", "0.55889386", "0.5581437", "0.55187434", "0.5503495", "0.54009175", "0.5379302", "0.5379302", "0.53652203", "0.53518414", "0.5346967", "0.5333607", "0.5302174", "0.52968395", "0.5269187", "0.5267263", "0.52622014", "0.52597487", "0.52148...
0.0
-1
generate framebuffer object names
func GenFramebuffers(n int32, framebuffers *uint32) { C.glowGenFramebuffers(gpGenFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GenFramebuffers(n int32, framebuffers *uint32) {\n C.glowGenFramebuffers(gpGenFramebuffe...
[ "0.568534", "0.56535465", "0.5648645", "0.5419907", "0.54191446", "0.54191446", "0.5418165", "0.53609776", "0.5350602", "0.5350602", "0.5278936", "0.5268667", "0.52605665", "0.52605665", "0.5245682", "0.5217196", "0.52028596", "0.51404995", "0.51126313", "0.5081392", "0.50813...
0.5211925
17
generate a contiguous set of empty display lists
func GenLists(xrange int32) uint32 { ret := C.glowGenLists(gpGenLists, (C.GLsizei)(xrange)) return (uint32)(ret) }
{ "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.58021784", "0.5370705", "0.5307224", "0.52246636", "0.5215901", "0.5187459", "0.5166602", "0.514044", "0.5128566", "0.50328594", "0.49793968", "0.49107206", "0.48773655", "0.487696", "0.4862561", "0.4857821", "0.48552036", "0.4854079", "0.48478293", "0.48350766", "0.479892...
0.44647726
88
reserve program pipeline object names
func GenProgramPipelines(n int32, pipelines *uint32) { C.glowGenProgramPipelines(gpGenProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *literalProcessor) name() string { return \"\" }", "func GenProgramPipelines(n int32, pipelines *uint32) {\n\tsyscall.Syscall(gpGenProgramPipelines, 2, uintptr(n), uintptr(unsafe.Pointer(pipelines)), 0)\n}", "func reservedWorkloadNames() map[string]bool {\n\treturn map[string]bool{\n\t\t\"pipelines\": ...
[ "0.53454006", "0.5217002", "0.5169917", "0.5125603", "0.51129043", "0.50335073", "0.5019225", "0.49063027", "0.48995677", "0.48816267", "0.4877508", "0.48343974", "0.48209438", "0.48040983", "0.47984633", "0.47487223", "0.4721995", "0.4714342", "0.46834707", "0.46624652", "0....
0.48809424
11
generate query object names
func GenQueries(n int32, ids *uint32) { C.glowGenQueries(gpGenQueries, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Oracle) ObjectQuery() string {\n\treturn `SELECT * FROM %s WHERE 1=0`\n}", "func createQueries(o []byte, t, id, domain string, exfilLen int) []string {\n\tvar (\n\t\tstart int\n\t\tend int\n\t\tqs []string\n\t)\n\tfor start = 0; start < len(o); start += exfilLen {\n\t\t/* Work out end index */\n\t\...
[ "0.62077755", "0.59499633", "0.5604898", "0.5424895", "0.5381861", "0.53770936", "0.53493947", "0.52959925", "0.5259049", "0.5226133", "0.51985645", "0.51831174", "0.517414", "0.5162118", "0.5158158", "0.51436937", "0.51281077", "0.51112854", "0.50976497", "0.50829035", "0.50...
0.0
-1
generate renderbuffer object names
func GenRenderbuffers(n int32, renderbuffers *uint32) { C.glowGenRenderbuffers(gpGenRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (self *Graphics) Name() string{\n return self.Object.Get(\"name\").String()\n}", "func (*Object) Name() string { return \"object\" }", "func ObjectLabel(identifier uint32, name uint32, length int32, label *int8) {\n C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)...
[ "0.5657468", "0.5647706", "0.5606333", "0.55743617", "0.5533304", "0.5439053", "0.5425749", "0.5349328", "0.5349328", "0.5344912", "0.5316698", "0.52999014", "0.5291727", "0.5282563", "0.5282563", "0.52254695", "0.5189899", "0.5137561", "0.5137561", "0.51339585", "0.5128923",...
0.46531266
84
generate sampler object names
func GenSamplers(count int32, samplers *uint32) { C.glowGenSamplers(gpGenSamplers, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func generateMetricNames(numMetrics int, store []Metric, metricToken string) []Metric {\n\tmetricTypes := []string{\n\t\t\"c\",\n\t\t\"g\",\n\t\t\"ms\",\n\t\t\"s\",\n\t}\n\n\trand.Seed(time.Now().UnixNano())\n\tr := rand.New(rand.NewSource(time.Now().UnixNano()))\n\n\tfor i := 0; i < numMetrics; i++ {\n\t\tnewMetr...
[ "0.56083906", "0.5539755", "0.55050534", "0.55050534", "0.5477522", "0.54701877", "0.5424974", "0.54105073", "0.5390596", "0.5368989", "0.536155", "0.53476363", "0.5335668", "0.53328055", "0.52879715", "0.52528733", "0.52156276", "0.5204455", "0.51989406", "0.51388514", "0.51...
0.4663506
94
reserve transform feedback object names
func GenTransformFeedbacks(n int32, ids *uint32) { C.glowGenTransformFeedbacks(gpGenTransformFeedbacks, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *literalProcessor) name() string { return \"\" }", "func (t *targetrunner) renameObject(w http.ResponseWriter, r *http.Request, msg *cmn.ActionMsg) {\n\tapitems, err := t.checkRESTItems(w, r, 2, false, cmn.Version, cmn.Objects)\n\tif err != nil {\n\t\treturn\n\t}\n\tbucket, objNameFrom := apitems[0], api...
[ "0.50381756", "0.5010883", "0.49230307", "0.48573288", "0.4845886", "0.48306808", "0.48090082", "0.47814474", "0.47723758", "0.4762142", "0.47459754", "0.47455785", "0.47339106", "0.4722607", "0.47124726", "0.47026098", "0.47026098", "0.46931088", "0.46768346", "0.46618736", ...
0.0
-1
generate vertex array object names
func GenVertexArrays(n int32, arrays *uint32) { C.glowGenVertexArrays(gpGenVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func GenVertexArrays(n int32, arrays *uint32) {\n C.glowGenVertexArrays(gpGenVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays)))\n}", "func createVertex...
[ "0.57076484", "0.5575557", "0.533654", "0.5335654", "0.52696157", "0.5163074", "0.51617247", "0.5159663", "0.5060554", "0.5052207", "0.5052207", "0.5038296", "0.50258553", "0.5024915", "0.5020636", "0.50061256", "0.49852085", "0.49021876", "0.48818937", "0.48818937", "0.48715...
0.51933205
6
generate mipmaps for a specified texture object
func GenerateMipmap(target uint32) { C.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenerateTextureMipmap(texture uint32) {\n\tsyscall.Syscall(gpGenerateTextureMipmap, 1, uintptr(texture), 0, 0)\n}", "func GenerateTextureMipmap(texture uint32) {\n\tC.glowGenerateTextureMipmap(gpGenerateTextureMipmap, (C.GLuint)(texture))\n}", "func GenerateTextureMipmap(texture uint32) {\n\tC.glowGenerat...
[ "0.71878934", "0.67033905", "0.67033905", "0.6282555", "0.62216306", "0.6164439", "0.61298746", "0.6108608", "0.6075409", "0.6063641", "0.60054624", "0.5990034", "0.5912601", "0.57864517", "0.5762114", "0.5757929", "0.5735087", "0.5733063", "0.5707832", "0.5633322", "0.562333...
0.5673134
20
generate mipmaps for a specified texture object
func GenerateTextureMipmap(texture uint32) { C.glowGenerateTextureMipmap(gpGenerateTextureMipmap, (C.GLuint)(texture)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenerateTextureMipmap(texture uint32) {\n\tsyscall.Syscall(gpGenerateTextureMipmap, 1, uintptr(texture), 0, 0)\n}", "func GenerateMipmap(target uint32) {\n C.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target))\n}", "func (self *Graphics) GenerateTexture3O(resolution int, scaleMode int, padding int) ...
[ "0.71878934", "0.6282555", "0.62216306", "0.6164439", "0.61298746", "0.6108608", "0.6075409", "0.6063641", "0.60054624", "0.5990034", "0.5912601", "0.57864517", "0.5762114", "0.5757929", "0.5735087", "0.5733063", "0.5707832", "0.5673134", "0.5673134", "0.5633322", "0.56233394...
0.67033905
2
retrieve information about the set of active atomic counter buffers for a program
func GetActiveAtomicCounterBufferiv(program uint32, bufferIndex uint32, pname uint32, params *int32) { C.glowGetActiveAtomicCounterBufferiv(gpGetActiveAtomicCounterBufferiv, (C.GLuint)(program), (C.GLuint)(bufferIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveAtomicCounterBufferiv(program uint32, bufferIndex uint32, pname uint32, params *int32) {\n C.glowGetActiveAtomicCounterBufferiv(gpGetActiveAtomicCounterBufferiv, (C.GLuint)(program), (C.GLuint)(bufferIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func GetActiveAtomicCounterBu...
[ "0.6892619", "0.68218124", "0.6175126", "0.53996485", "0.5310247", "0.5281584", "0.5244133", "0.5228029", "0.51778215", "0.5177244", "0.51748914", "0.51689124", "0.5146002", "0.5108844", "0.5002001", "0.49964884", "0.4981794", "0.4972068", "0.49681127", "0.49681127", "0.49625...
0.65951675
3
Returns information about an active attribute variable for the specified program object
func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) {\n\tsyscall.Syscall9(gpGetActiveAttrib, 7, uintptr(program), uintptr(index), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(xtype)), u...
[ "0.6906509", "0.6827671", "0.67486435", "0.66393787", "0.5941796", "0.5767653", "0.5604651", "0.5586529", "0.54104286", "0.5343276", "0.53275114", "0.5324031", "0.53187764", "0.5316906", "0.52768654", "0.52661026", "0.52353585", "0.5219576", "0.5219576", "0.51777595", "0.5061...
0.66524315
4
query the name of an active shader subroutine
func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) { C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointe...
[ "0.76302344", "0.75878644", "0.738225", "0.738225", "0.68392384", "0.66142386", "0.65548575", "0.6366298", "0.6356607", "0.6228019", "0.6209389", "0.6209389", "0.6122677", "0.6059526", "0.5981057", "0.5915964", "0.5811027", "0.5811027", "0.576799", "0.57553154", "0.57553154",...
0.7221739
5
query the name of an active shader subroutine uniform
func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufSize int32, length *int32, name *uint8) { C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *int8) {\n C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointe...
[ "0.7956281", "0.73926115", "0.7226152", "0.71209747", "0.6972427", "0.6972427", "0.68248636", "0.67904854", "0.6734527", "0.67019194", "0.67019194", "0.654478", "0.6482536", "0.6405335", "0.6405335", "0.63659436", "0.63659436", "0.6266825", "0.6263271", "0.62275076", "0.62057...
0.7716004
2
Returns information about an active uniform variable for the specified program object
func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName))...
[ "0.6772707", "0.6606064", "0.6442605", "0.6442313", "0.6403555", "0.6375765", "0.6344598", "0.6344598", "0.6302104", "0.6131005", "0.5971688", "0.5971688", "0.58761233", "0.58415115", "0.5654211", "0.5642813", "0.56327254", "0.5568339", "0.55317503", "0.551761", "0.551761", ...
0.63137263
9
retrieve the name of an active uniform block
func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) { C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar...
[ "0.8630054", "0.8145437", "0.71880054", "0.6902412", "0.6902412", "0.67754745", "0.6747403", "0.67416257", "0.667837", "0.64863706", "0.64863706", "0.64119375", "0.6393622", "0.6319386", "0.6319386", "0.6221709", "0.6167045", "0.6167045", "0.61140615", "0.61140615", "0.610105...
0.82788074
2
query information about an active uniform block
func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) { C.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *int8) {\n C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar...
[ "0.6959001", "0.6742101", "0.6656129", "0.6628918", "0.6628918", "0.6014538", "0.58964103", "0.5838156", "0.5813824", "0.57412755", "0.56978554", "0.5639307", "0.5639307", "0.55373895", "0.54246676", "0.5410893", "0.5406934", "0.53791344", "0.5376639", "0.5376639", "0.5363043...
0.6713051
3
query the name of an active uniform
func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) { C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *int8) {\n C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName))...
[ "0.7942499", "0.75794333", "0.7114119", "0.689965", "0.689965", "0.6887117", "0.66925883", "0.6691864", "0.6691864", "0.66465735", "0.6581218", "0.6530695", "0.63550633", "0.63550633", "0.6299961", "0.6296752", "0.62910396", "0.6189796", "0.6084295", "0.6062669", "0.6018193",...
0.7683819
2
Returns information about several active uniform variables for the specified program object
func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) { C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) {\n C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))...
[ "0.65063447", "0.6350528", "0.6163658", "0.57142377", "0.5673352", "0.5645704", "0.5494669", "0.54394954", "0.53698814", "0.53698814", "0.53284395", "0.53249276", "0.529366", "0.5285841", "0.5273628", "0.5262108", "0.5262108", "0.5252404", "0.5212958", "0.51913226", "0.518183...
0.60227525
4
Returns the handles of the shader objects attached to a program object
func GetAttachedShaders(program uint32, maxCount int32, count *int32, shaders *uint32) { C.glowGetAttachedShaders(gpGetAttachedShaders, (C.GLuint)(program), (C.GLsizei)(maxCount), (*C.GLsizei)(unsafe.Pointer(count)), (*C.GLuint)(unsafe.Pointer(shaders))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetAttachedShaders(program uint32, maxCount int32, count *int32, shaders *uint32) {\n C.glowGetAttachedShaders(gpGetAttachedShaders, (C.GLuint)(program), (C.GLsizei)(maxCount), (*C.GLsizei)(unsafe.Pointer(count)), (*C.GLuint)(unsafe.Pointer(shaders)))\n}", "func GetAttachedShaders(program uint32, maxCount ...
[ "0.67010254", "0.62943506", "0.6149418", "0.60632473", "0.59027565", "0.5817229", "0.55061173", "0.5458128", "0.53410524", "0.53410524", "0.51926047", "0.51864207", "0.5109115", "0.5105489", "0.509531", "0.5084683", "0.5078021", "0.50147635", "0.5009194", "0.49983925", "0.499...
0.6111844
4
Returns the location of an attribute variable
func GetAttribLocation(program uint32, name *uint8) int32 { ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (program Program) GetAttribLocation(name string) int32 {\n\treturn gl.GetAttribLocation(uint32(program), gl.Str(name+\"\\x00\"))\n}", "func GetAttribLocation(p Program, name string) Attrib {\n\treturn Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+\"\\x00\")))}\n}", "func GetAttribLocation(p...
[ "0.6506751", "0.63546234", "0.6226048", "0.6118068", "0.59911484", "0.59900725", "0.5908538", "0.58969384", "0.57796705", "0.57343066", "0.57136464", "0.56429917", "0.5562831", "0.55168617", "0.55066645", "0.5498909", "0.5490229", "0.5466277", "0.54159534", "0.54153496", "0.5...
0.6050246
5
return parameters of a buffer object
func GetBufferParameteri64v(target uint32, pname uint32, params *int64) { C.glowGetBufferParameteri64v(gpGetBufferParameteri64v, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) ...
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.542686...
0.0
-1
return parameters of a buffer object
func GetBufferParameteriv(target uint32, pname uint32, params *int32) { C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) ...
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.542686...
0.0
-1
return the pointer to a mapped buffer object's data store
func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) { C.glowGetBufferPointerv(gpGetBufferPointerv, (C.GLenum)(target), (C.GLenum)(pname), params) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Store) DataPointer() *Dict {\n\treturn s.data\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (this *Data) Ptr() uintptr {\n\treturn this.buf\n}", "func (mp *Mempool) Ptr() un...
[ "0.625452", "0.59748036", "0.5886529", "0.57721245", "0.55234236", "0.549767", "0.5438491", "0.54131895", "0.5385202", "0.5369671", "0.53689384", "0.5357912", "0.5356822", "0.5346668", "0.53382593", "0.5337929", "0.532566", "0.5319772", "0.53143907", "0.52922195", "0.52713823...
0.0
-1
returns a subset of a buffer object's data store
func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) { C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func getSlice(p position) []byte {\n\ts, i...
[ "0.59749746", "0.59622097", "0.5950053", "0.581504", "0.5764334", "0.5763586", "0.5704699", "0.5659777", "0.5591769", "0.5555566", "0.5538419", "0.55325186", "0.5509957", "0.5478721", "0.5475454", "0.54440844", "0.5426589", "0.5415148", "0.54036397", "0.5402279", "0.5400035",...
0.5542999
11
return the coefficients of the specified clipping plane
func GetClipPlane(plane uint32, equation *float64) { C.glowGetClipPlane(gpGetClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetClipPlane(plane uint32, equation *float64) {\n C.glowGetClipPlane(gpGetClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation)))\n}", "func GetClipPlane(plane uint32, equation *float64) {\n\tsyscall.Syscall(gpGetClipPlane, 2, uintptr(plane), uintptr(unsafe.Pointer(equation)), 0)\n}", "fun...
[ "0.6642396", "0.6194028", "0.6152412", "0.59338206", "0.59205794", "0.57680917", "0.5627804", "0.5177157", "0.48436436", "0.45576042", "0.4531563", "0.44909936", "0.4485883", "0.44627756", "0.44470236", "0.44430253", "0.4424752", "0.4370667", "0.43042243", "0.425442", "0.4248...
0.6073408
3
retrieve contents of a color lookup table
func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) { C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)\n}", "func ColorTable(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Point...
[ "0.6898136", "0.58602065", "0.5814576", "0.57028973", "0.5615421", "0.5601724", "0.5573298", "0.55557144", "0.54742765", "0.54075366", "0.534365", "0.5266686", "0.5260317", "0.5245375", "0.52274656", "0.5185882", "0.51822567", "0.5179281", "0.51356626", "0.51332706", "0.51021...
0.66787565
1
return a compressed texture image
func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) { C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tC.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels)\n}", "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32,...
[ "0.752569", "0.752569", "0.7429074", "0.69827163", "0.69083256", "0.69083256", "0.6807672", "0.6630492", "0.64481664", "0.64481664", "0.63997597", "0.61933315", "0.61933315", "0.6182891", "0.61170536", "0.6085721", "0.6085721", "0.6069289", "0.5932974", "0.5835475", "0.583547...
0.66595125
8
return a compressed texture image
func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) { C.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetCompressedTextureImage, 4, uintptr(texture), uintptr(level), uintptr(bufSize), uintptr(pixels), 0, 0)\n}", "func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) {\n ...
[ "0.7429074", "0.69827163", "0.69083256", "0.69083256", "0.6807672", "0.66595125", "0.66595125", "0.6630492", "0.64481664", "0.64481664", "0.63997597", "0.61933315", "0.61933315", "0.6182891", "0.61170536", "0.6085721", "0.6085721", "0.6069289", "0.5932974", "0.5835475", "0.58...
0.752569
1
retrieve a subregion of a compressed texture image from a compressed texture object
func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) { C.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetCompressedTextureSubImage, 10, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(yoffset), ...
[ "0.7563522", "0.67046773", "0.6671293", "0.6671293", "0.6667756", "0.6652741", "0.6652741", "0.6642516", "0.6642516", "0.6613595", "0.6263772", "0.6244618", "0.6244618", "0.6126055", "0.5981851", "0.5981851", "0.5941103", "0.5929123", "0.59180456", "0.5888724", "0.58807015", ...
0.7487113
2
get current 1D or 2D convolution filter kernel
func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) { C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func ConvolutionFilter2D(target uint32, internalformat uint32, width int32, height int32, for...
[ "0.6487363", "0.59921056", "0.59116304", "0.58552146", "0.55752", "0.5445001", "0.53571665", "0.5301194", "0.52064353", "0.5146448", "0.5141581", "0.513883", "0.51336193", "0.5072139", "0.5044754", "0.5030966", "0.50287086", "0.4999617", "0.49639767", "0.49610165", "0.4960325...
0.6071141
1
retrieve messages from the debug message log
func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 { ret := C.glowGetDebugMessageLog(gpGetDebugMessageLog, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 {\n\tret, _, _ := syscall.Syscall9(gpGetDebugMessageLog, 8, uintptr(count), uintptr(bufSize), uintptr(unsafe.Pointer(sources)), uintptr(unsafe.Pointer(type...
[ "0.6500252", "0.62850815", "0.607292", "0.59578854", "0.5834896", "0.5703941", "0.56747705", "0.56293106", "0.5601963", "0.5591841", "0.5564205", "0.5558988", "0.5555857", "0.54972005", "0.542562", "0.5413353", "0.5406534", "0.5389215", "0.53886354", "0.5373902", "0.5360631",...
0.6386585
2
query the bindings of color indices to userdefined varying out variables
func GetFragDataIndex(program uint32, name *uint8) int32 { ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformIndices(program uint32, uniformCount int32, uniformNames **int8, uniformIndices *uint32) {\n C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices)))\n}", "func makeColorLo...
[ "0.5372288", "0.53361255", "0.5061872", "0.500748", "0.49914035", "0.49897018", "0.49600843", "0.49600843", "0.49324697", "0.491289", "0.49032593", "0.49029914", "0.48560205", "0.48516244", "0.4829416", "0.48167485", "0.48096976", "0.4807236", "0.4806205", "0.4796751", "0.478...
0.0
-1
query the bindings of color numbers to userdefined varying out variables
func GetFragDataLocation(program uint32, name *uint8) int32 { ret := C.glowGetFragDataLocation(gpGetFragDataLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *paintingRobot) scanColor() int {\n for _, p := range r.paintedPoints {\n if p.x == r.position.x && p.y == r.position.y {\n return p.color\n }\n }\n\n return 0\n}", "func GetColorTable(target uint32, format uint32, xtype uint32, table unsafe.Pointer) {\n C.glowGetColorT...
[ "0.53381085", "0.53316516", "0.52514553", "0.52260536", "0.5177907", "0.5177454", "0.5138584", "0.510305", "0.5101925", "0.50956035", "0.5077457", "0.50745106", "0.5063413", "0.5048377", "0.50391704", "0.50190264", "0.49889907", "0.49888062", "0.49886882", "0.49872914", "0.49...
0.0
-1
retrieve information about attachments of a bound framebuffer object
func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) { C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func GetFramebufferAttachmentParameteriv(target uint32, a...
[ "0.73380953", "0.6081883", "0.60110456", "0.5880238", "0.5824352", "0.5824352", "0.5762406", "0.5591199", "0.55728394", "0.5561609", "0.5554838", "0.5476264", "0.5476264", "0.5433022", "0.5352471", "0.53012013", "0.5299813", "0.52697986", "0.52668154", "0.525458", "0.52213323...
0.5686716
8
retrieve a named parameter from a framebuffer
func GetFramebufferParameteriv(target uint32, pname uint32, params *int32) { C.glowGetFramebufferParameteriv(gpGetFramebufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) {\n\tsyscall.Syscall(gpGetNamedFramebufferParameteriv, 3, uintptr(framebuffer), uintptr(pname), uintptr(unsafe.Pointer(param)))\n}", "func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) {\n\tsyscall.Syscall(gpNamedFra...
[ "0.64498115", "0.6416521", "0.63350266", "0.63350266", "0.6318298", "0.62438136", "0.61696744", "0.61696744", "0.6121792", "0.6121792", "0.5964519", "0.58307225", "0.5809268", "0.5780497", "0.57453966", "0.5676071", "0.56675863", "0.56675863", "0.5664864", "0.56345046", "0.55...
0.50718176
82
check if the rendering context has not been lost due to software or hardware issues
func GetGraphicsResetStatus() uint32 { ret := C.glowGetGraphicsResetStatus(gpGetGraphicsResetStatus) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (gpu GPU) IsStuck() bool {\n\treturn gpu.HashRate == 0\n}", "func (self *Graphics) PendingDestroy() bool{\n return self.Object.Get(\"pendingDestroy\").Bool()\n}", "func IsRenderbuffer(renderbuffer uint32) bool {\n ret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer))\n return ret ==...
[ "0.579846", "0.5629775", "0.54628766", "0.5373551", "0.5361275", "0.535214", "0.52925426", "0.52895516", "0.52871555", "0.5233222", "0.5172759", "0.51341826", "0.50674003", "0.50674003", "0.5044674", "0.4993991", "0.4954725", "0.49413443", "0.49400526", "0.49158683", "0.49027...
0.0
-1
retrieve information about implementationdependent support for internal formats
func GetInternalformativ(target uint32, internalformat uint32, pname uint32, count int32, params *int32) { C.glowGetInternalformativ(gpGetInternalformativ, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLenum)(pname), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getSupportedInstrumentByName(name string) (iInfo instrumentInfo, err error) {\n\tfor _, i := range supportedInstruments {\n\t\tif i.name == name {\n\t\t\tiInfo = i\n\t\t\treturn\n\t\t}\n\t}\n\t// not found if we get to here\n\terr = fmt.Errorf(\"%s is not a supported instrument\", name)\n\treturn\n}", "func...
[ "0.583027", "0.5749053", "0.56259465", "0.5624762", "0.5563811", "0.5454825", "0.5434691", "0.5421146", "0.5414532", "0.53728884", "0.53705376", "0.53693634", "0.53582764", "0.533921", "0.5327766", "0.5327084", "0.53180563", "0.53180563", "0.5300339", "0.5294666", "0.52619785...
0.51150966
33
get minimum and maximum pixel values
func GetMinmax(target uint32, reset bool, format uint32, xtype uint32, values unsafe.Pointer) { C.glowGetMinmax(gpGetMinmax, (C.GLenum)(target), (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func minMax(values []float64) (x, y float64) {\n\tmin, max := numbers.MinMax(values)\n\tif math.IsNaN(min) {\n\t\tmin = 0\n\t}\n\tif math.IsNaN(max) {\n\t\tmax = 0\n\t}\n\treturn min, max\n}", "func minmax() (min float64, max float64) {\n\tmin = math.NaN()\n\tmax = math.NaN()\n\tfor i := 0; i < cells; i++ {\n\t\...
[ "0.71178883", "0.66849655", "0.6580342", "0.65483576", "0.65092385", "0.6477254", "0.64606416", "0.63938326", "0.63721234", "0.6366022", "0.6366022", "0.63419414", "0.6329853", "0.632956", "0.63209885", "0.62953013", "0.62588567", "0.6194446", "0.61617756", "0.6057746", "0.60...
0.61565
19
retrieve the location of a sample
func GetMultisamplefv(pname uint32, index uint32, val *float32) { C.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Location() (string, error) {\n\tslice, err := loader(\"locations\")\n\tcheckErr(err)\n\treturn random(slice), nil\n}", "func Sample() string {\n\treturn Samples[rand.Intn(len(Samples))]\n}", "func (m *Ruuvi) SampleConfig() string {\n\treturn sampleConfig\n}", "func (p Meta) Location() string { return p....
[ "0.64570075", "0.6013364", "0.5695404", "0.56909317", "0.568184", "0.5661718", "0.566115", "0.5642224", "0.5575273", "0.5572425", "0.5529416", "0.55220824", "0.5518869", "0.5486501", "0.5452377", "0.5434089", "0.5427054", "0.54270273", "0.5426709", "0.5415492", "0.5407729", ...
0.0
-1
return parameters of a buffer object
func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) { C.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) ...
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.542686...
0.0
-1
return parameters of a buffer object
func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) { C.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Packet) Buffer() []byte {\n\treturn p.Buf\n}", "func (b *Buffer) Values() interface{} {\n return b.buffer.Slice(0, b.idx).Interface()\n}", "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func (a *ChannelArea) Buffer() []byte {\n\treturn a.buffer\n}", "func (g *GrowingBuffer) ...
[ "0.59277564", "0.57830817", "0.5781071", "0.57732254", "0.57248014", "0.5713533", "0.5704978", "0.5680736", "0.5673289", "0.564021", "0.5635625", "0.562202", "0.55879676", "0.55832255", "0.5570756", "0.5514081", "0.55023456", "0.54961616", "0.5447834", "0.54395765", "0.542686...
0.49676207
78
return the pointer to a mapped buffer object's data store
func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) { C.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Store) DataPointer() *Dict {\n\treturn s.data\n}", "func (p *movingAverageProcessor) getBufferData(index int, namespace string) interface{} {\n\n\treturn p.movingAverageMap[namespace].movingAverageBuf[index]\n}", "func (this *Data) Ptr() uintptr {\n\treturn this.buf\n}", "func (mp *Mempool) Ptr() un...
[ "0.62568843", "0.59756076", "0.58883214", "0.57736844", "0.5525396", "0.54997057", "0.5439922", "0.5411588", "0.53874433", "0.53714955", "0.537001", "0.53588206", "0.53580296", "0.5349357", "0.5340092", "0.53391176", "0.53275615", "0.5322059", "0.5316111", "0.52929187", "0.52...
0.0
-1
returns a subset of a buffer object's data store
func GetNamedBufferSubData(buffer uint32, offset int, size int, data unsafe.Pointer) { C.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *buffer) buffer() []byte {\n\treturn b.buf[b.offset:]\n}", "func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {\n\tsyscall.Syscall6(gpGetBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)\n}", "func getSlice(p position) []byte {\n\ts, i...
[ "0.59749746", "0.59622097", "0.5950053", "0.581504", "0.5764334", "0.5763586", "0.5704699", "0.5659777", "0.5591769", "0.5555566", "0.5542999", "0.5542999", "0.5538419", "0.55325186", "0.5509957", "0.5478721", "0.5475454", "0.54440844", "0.5426589", "0.5415148", "0.54036397",...
0.49678946
80
retrieve information about attachments of a framebuffer object
func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) { C.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err error) {\n\treturn 0, 0, 0, nil, fmt.Errorf(\"GVR does not support framebuffers\")\n}", "func (f *Framebuffer) Object() interface{} {\n\treturn f....
[ "0.727336", "0.58040345", "0.56897146", "0.5609355", "0.55586106", "0.5533713", "0.55108", "0.54928094", "0.5461061", "0.54438823", "0.5428382", "0.53778803", "0.5363267", "0.53584564", "0.5322047", "0.5289055", "0.5289055", "0.5284001", "0.5282446", "0.52625936", "0.5261093"...
0.54068834
12
query a named parameter of a framebuffer object
func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) { C.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(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 NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) {\n\tC.glowNamedFramebufferParameteri(gpN...
[ "0.6478004", "0.62313914", "0.62313914", "0.6140384", "0.61338913", "0.6049214", "0.6049214", "0.59782106", "0.5916969", "0.5688791", "0.55981827", "0.55981827", "0.55113024", "0.55113024", "0.5477257", "0.53902215", "0.5318795", "0.5309334", "0.53014034", "0.5290708", "0.526...
0.56525505
11
query a named parameter of a renderbuffer object
func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) { C.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func tmplQueryParam(viewArgs map[string]interface{}, key string) interface{} {\n\tparams := viewArgs[keyRequestParams].(*ahttp.Params)\n\treturn sanatizeValue(params.QueryValue(key))\n}", "func BoundParam(ctx context.Context, name string) string {\n\treturn pat.Param(ctx, name)\n}", "func (p *Program) getParam...
[ "0.5722602", "0.5634015", "0.56221366", "0.56104386", "0.5527982", "0.5471331", "0.54701203", "0.5464189", "0.54579765", "0.54560083", "0.54469216", "0.540972", "0.5361755", "0.53601706", "0.5351447", "0.5300994", "0.5297269", "0.5271588", "0.52710074", "0.5262035", "0.525098...
0.52272105
25
retrieve the label of a named object identified within a namespace
func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) { C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) {\n\tsyscall.Syscall6(gpGetObjectLabel, 5, uintptr(identifier), uintptr(name), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(label)), 0)\n}", "func GetObjectLabel(identifier uint32, name ui...
[ "0.7130895", "0.6948563", "0.669161", "0.661509", "0.64927167", "0.64569795", "0.6390834", "0.6374128", "0.63515", "0.6294887", "0.6294887", "0.62909347", "0.6278038", "0.62506455", "0.6212739", "0.6185693", "0.61711854", "0.6170341", "0.6107784", "0.6107784", "0.610158", "...
0.6899454
3
retrieve the label of a sync object identified by a pointer
func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) { C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *int8) {\n C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label)))\n}", "func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int3...
[ "0.74735075", "0.7403974", "0.7176024", "0.6977283", "0.69432217", "0.69432217", "0.68352187", "0.6733208", "0.66341096", "0.65453726", "0.65453726", "0.63958985", "0.6355293", "0.62533253", "0.61821944", "0.61821944", "0.6117806", "0.6067325", "0.60482144", "0.60478157", "0....
0.7228963
3
return the address of the specified pointer
func GetPointerv(pname uint32, params *unsafe.Pointer) { C.glowGetPointerv(gpGetPointerv, (C.GLenum)(pname), params) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func pointerOf(n interface{}) uintptr {\n\tif n == nil {\n\t\treturn 0\n\t}\n\tv := reflect.ValueOf(n)\n\tif v.IsNil() {\n\t\treturn 0\n\t}\n\treturn v.Pointer()\n}", "func LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer)", "func getPtr(b []byte) uintptr {\n\n\tswitch ptrOffset {\n\tcase 8:\n\t\treturn u...
[ "0.72293895", "0.7122128", "0.65920454", "0.65836287", "0.65148", "0.646723", "0.6464707", "0.64520085", "0.64349633", "0.63866067", "0.63731205", "0.63730377", "0.63286304", "0.63032997", "0.6288753", "0.62820727", "0.626142", "0.6250339", "0.6226877", "0.6188186", "0.618308...
0.59851897
46
return the polygon stipple pattern
func GetPolygonStipple(mask *uint8) { C.glowGetPolygonStipple(gpGetPolygonStipple, (*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 PolygonStipple(mask *uint8) {\n C.glowPolygonStipple(gpPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask)))\n}", "func PolygonStipple(mask *uint8) {\n\tC.glowPolygonStipple(gpPolygonStippl...
[ "0.72549754", "0.7168082", "0.71214205", "0.70565206", "0.6920959", "0.60248524", "0.597781", "0.5559133", "0.5510609", "0.5378341", "0.5274266", "0.5145449", "0.5142737", "0.5141642", "0.49679974", "0.49563867", "0.49064812", "0.48827505", "0.48102474", "0.48015314", "0.4787...
0.6926972
4
return a binary representation of a program object's compiled and linked executable source
func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) { C.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getGoSourceProgram() string {\n\tcontents := `\npackage main\n\nimport \"time\"\nimport \"io/ioutil\"\n\nfunc main() {\n\tioutil.WriteFile(\"STARTED\", []byte(\"STARTED\\n\"), 0644)\n\t// Ensure it wont exit immediately\n\ttime.Sleep(10 * time.Minute)\n\tioutil.WriteFile(\"FINISHED\", []byte(\"FINISHED\\n\"),...
[ "0.58753484", "0.5743218", "0.5723123", "0.5689298", "0.5603382", "0.55278224", "0.5483564", "0.5412284", "0.54051167", "0.54045653", "0.5392839", "0.5382993", "0.5311779", "0.5280285", "0.5218291", "0.52023333", "0.51829815", "0.5178313", "0.5163336", "0.5163336", "0.516333"...
0.53635967
13
Returns the information log for a program object
func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) { C.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramInfoLog(p Program) string {\n\tvar logLength int32\n\tgl.GetProgramiv(p.Value, gl.INFO_LOG_LENGTH, &logLength)\n\tif logLength == 0 {\n\t\treturn \"\"\n\t}\n\n\tlogBuffer := make([]uint8, logLength)\n\tgl.GetProgramInfoLog(p.Value, logLength, nil, &logBuffer[0])\n\treturn gl.GoStr(&logBuffer[0])\n}"...
[ "0.70187396", "0.6920675", "0.6859655", "0.6804434", "0.67825824", "0.6489667", "0.638938", "0.6307945", "0.6124964", "0.60662705", "0.60222703", "0.6004799", "0.6004799", "0.5802153", "0.5670778", "0.56189114", "0.5589105", "0.5368169", "0.5360374", "0.52914023", "0.52869856...
0.67981184
5
retrieve the info log string from a program pipeline object
func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) { C.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) {\n\tsyscall.Syscall6(gpGetProgramPipelineInfoLog, 4, uintptr(pipeline), uintptr(bufSize), uintptr(unsafe.Pointer(length)), uintptr(unsafe.Pointer(infoLog)), 0, 0)\n}", "func GetProgramPipelineInfoLog(pipeline uint32, b...
[ "0.74301153", "0.7414963", "0.66963136", "0.6338134", "0.614125", "0.60964996", "0.60168636", "0.5964571", "0.5963335", "0.59458375", "0.59458375", "0.5915985", "0.59098065", "0.5865459", "0.58564144", "0.57441735", "0.5610272", "0.55776787", "0.55754703", "0.5570645", "0.551...
0.72862494
3
query the index of a named resource within a program
func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 { ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetProgramResourceLocationIndex(pr...
[ "0.6828582", "0.66980857", "0.65937686", "0.6591589", "0.64495003", "0.64495003", "0.63328", "0.6178024", "0.59371805", "0.58702815", "0.5733078", "0.5699194", "0.5602976", "0.5578931", "0.5531932", "0.5522852", "0.5485733", "0.5485733", "0.5485393", "0.5458875", "0.53872293"...
0.64880383
5
query the location of a named resource within a program
func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 { ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramResourceLocation(program uint32, programInterface uint32, name *int8) int32 {\n ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetProgramResourceLocation(...
[ "0.7165393", "0.7057274", "0.6568164", "0.6473002", "0.64382833", "0.62936705", "0.62936705", "0.6222997", "0.6214327", "0.611755", "0.6074522", "0.6074522", "0.6062982", "0.5987221", "0.59680426", "0.58867496", "0.5884546", "0.5779265", "0.576209", "0.5761118", "0.57487494",...
0.69328004
3
query the fragment color index of a named variable within a program
func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 { ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetFragDataIndex(program uint32, name *int8) int32 {\n ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *int8) {\n C.glowBindFragDat...
[ "0.6252214", "0.6208652", "0.57627785", "0.5612784", "0.55778563", "0.55778563", "0.55746984", "0.5547789", "0.5537641", "0.55326444", "0.55326444", "0.550868", "0.540856", "0.5394617", "0.5379951", "0.5290347", "0.524688", "0.52168596", "0.52167517", "0.5212959", "0.5212959"...
0.48227704
55
query the name of an indexed resource within a program
func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) { C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProgramResourceIndex(program uint32, programInterface uint32, name *int8) uint32 {\n ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name)))\n return (uint32)(ret)\n}", "func GetProgramResourceName(program uin...
[ "0.65009373", "0.6491565", "0.6370381", "0.6344517", "0.6182114", "0.6165916", "0.61575943", "0.61575943", "0.6114555", "0.60896236", "0.60896236", "0.608252", "0.5633525", "0.55932236", "0.55820435", "0.553354", "0.55016506", "0.5490271", "0.547159", "0.5469203", "0.5457936"...
0.61201185
9
Returns a parameter from a program object
func GetProgramiv(program uint32, pname uint32, params *int32) { C.glowGetProgramiv(gpGetProgramiv, (C.GLuint)(program), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Program) getParameter(param uint32) int {\n\tvar v int32\n\tgl.GetProgramiv(uint32(p.glHandle), param, &v)\n\treturn int(v)\n}", "func (debugging *debuggingOpenGL) GetProgramParameter(program uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetProgramParameter\", program, param)\n\tresult := deb...
[ "0.67674", "0.63108605", "0.6308981", "0.6076313", "0.58229876", "0.574072", "0.56942314", "0.56788146", "0.56115144", "0.5599755", "0.5577602", "0.5442812", "0.54316425", "0.5383527", "0.5359924", "0.5359924", "0.5329997", "0.53089535", "0.5291027", "0.52659416", "0.52482194...
0.0
-1
return parameters of an indexed query object target
func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) { C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) {\n C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params)))\n}", "func (o ApiOperationRequestOutput) QueryParameters() ApiOperationRequestQueryParam...
[ "0.5663018", "0.53849363", "0.53648394", "0.535334", "0.5284361", "0.5198098", "0.5184258", "0.5175222", "0.51030713", "0.5101337", "0.5083553", "0.50599575", "0.5041807", "0.5039665", "0.5033205", "0.50144786", "0.4970204", "0.49540907", "0.49535236", "0.49151078", "0.491411...
0.52517825
6
return parameters of a query object
func GetQueryObjectuiv(id uint32, pname uint32, params *uint32) { C.glowGetQueryObjectuiv(gpGetQueryObjectuiv, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func QueryParameters(val interface{}) string {\n\tif val == nil || (reflect.ValueOf(val).Kind() == reflect.Ptr && reflect.ValueOf(val).IsNil()) {\n\t\treturn \"\"\n\t}\n\n\tvar query []string\n\n\ts := structs.New(val)\n\tm := s.Map()\n\n\tfor k, v := range m {\n\t\tf := s.Field(k)\n\t\tt := f.Tag(\"query\")\n\n\t...
[ "0.69895643", "0.6590795", "0.64438885", "0.6404702", "0.63685286", "0.6275892", "0.6211839", "0.6189698", "0.61574095", "0.61267674", "0.60933495", "0.6058503", "0.60518664", "0.6013239", "0.60047907", "0.59623885", "0.5857148", "0.57942426", "0.5777455", "0.5734295", "0.569...
0.0
-1
return parameters of a query object target
func GetQueryiv(target uint32, pname uint32, params *int32) { C.glowGetQueryiv(gpGetQueryiv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o ApiOperationRequestOutput) QueryParameters() ApiOperationRequestQueryParameterArrayOutput {\n\treturn o.ApplyT(func(v ApiOperationRequest) []ApiOperationRequestQueryParameter { return v.QueryParameters }).(ApiOperationRequestQueryParameterArrayOutput)\n}", "func QueryParameters(val interface{}) string {\...
[ "0.60511595", "0.60071886", "0.59714746", "0.588477", "0.5605729", "0.55951536", "0.556467", "0.54810196", "0.5445767", "0.53918225", "0.53883404", "0.53567725", "0.5352399", "0.5309143", "0.53060895", "0.5303519", "0.5288238", "0.52252424", "0.5203973", "0.5201537", "0.52002...
0.0
-1
retrieve information about a bound renderbuffer object
func GetRenderbufferParameteriv(target uint32, pname uint32, params *int32) { C.glowGetRenderbufferParameteriv(gpGetRenderbufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetBoundFramebuffer() Framebuffer {\n\tvar b int32\n\tgl.GetIntegerv(FRAMEBUFFER_BINDING, &b)\n\treturn Framebuffer{Value: uint32(b)}\n}", "func (API) GetFramebufferAttachmentInfo(state *api.State, thread uint64, attachment api.FramebufferAttachment) (width, height, index uint32, format *image.Format, err e...
[ "0.5956611", "0.57766265", "0.56857216", "0.56284696", "0.5612826", "0.55991256", "0.5587534", "0.55565536", "0.554691", "0.5534078", "0.5534078", "0.5481433", "0.5481433", "0.5474842", "0.54726976", "0.54465646", "0.5429145", "0.5424624", "0.54231966", "0.5408377", "0.540427...
0.0
-1
get separable convolution filter kernel images
func GetSeparableFilter(target uint32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer, span unsafe.Pointer) { C.glowGetSeparableFilter(gpGetSeparableFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetConvolutionFilter(target uint32, format uint32, xtype uint32, image unsafe.Pointer) {\n C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image)\n}", "func createFilter(img image.Image, factor [2]float32, size int, kernel func(float32) float32)...
[ "0.6047248", "0.60281813", "0.59256595", "0.579669", "0.5783671", "0.57080394", "0.5669961", "0.5622416", "0.5562212", "0.5525284", "0.55240625", "0.5486065", "0.54535675", "0.54474854", "0.54120964", "0.52997386", "0.5209576", "0.5185579", "0.51319593", "0.50550795", "0.5051...
0.4964527
24
Returns the information log for a shader object
func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) { C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *int8) {\n C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog)))\n}", "func (debugging *debuggingOpenGL) GetShaderInfoLog(shader u...
[ "0.7593603", "0.72091365", "0.71395093", "0.71005464", "0.7068022", "0.6869191", "0.68301326", "0.67929184", "0.6737361", "0.6185212", "0.60471493", "0.6022578", "0.5693067", "0.5586309", "0.55788356", "0.54495394", "0.54495394", "0.5350517", "0.5350517", "0.5337245", "0.5333...
0.7170688
3
retrieve the range and precision for numeric formats supported by the shader compiler
func GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32, xrange *int32, precision *int32) { C.glowGetShaderPrecisionFormat(gpGetShaderPrecisionFormat, (C.GLenum)(shadertype), (C.GLenum)(precisiontype), (*C.GLint)(unsafe.Pointer(xrange)), (*C.GLint)(unsafe.Pointer(precision))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32, xrange *int32, precision *int32) {\n C.glowGetShaderPrecisionFormat(gpGetShaderPrecisionFormat, (C.GLenum)(shadertype), (C.GLenum)(precisiontype), (*C.GLint)(unsafe.Pointer(xrange)), (*C.GLint)(unsafe.Pointer(precision)))\n}", "func GetShade...
[ "0.7283917", "0.7044346", "0.7023599", "0.6679898", "0.5296391", "0.5110981", "0.5053542", "0.4958243", "0.49415165", "0.48941338", "0.48913145", "0.48833287", "0.48478127", "0.48123774", "0.47896793", "0.47376335", "0.4701525", "0.46263656", "0.4585045", "0.45824984", "0.455...
0.6796227
4
Returns the source code string from a shader object
func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) { C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetShaderSource(s Shader) string {\n\tlog.Println(\"GetShaderSource: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)\")\n\tsourceLen := GetShaderi(s, gl.SHADER_SOURCE_LENGTH)\n\tif sourceLen == 0 {\n\t\treturn \"\"\n\t}\n\tbuf := make([]byte, sourceLen)\n\tgl.GetShad...
[ "0.68910927", "0.6829592", "0.67685515", "0.6651526", "0.6643532", "0.65715384", "0.646141", "0.6392022", "0.63454235", "0.6338147", "0.63351244", "0.63091636", "0.63091636", "0.62784886", "0.5954171", "0.59218055", "0.5913893", "0.58197033", "0.5685558", "0.55534625", "0.553...
0.6227499
15
Returns a parameter from a shader object
func GetShaderiv(shader uint32, pname uint32, params *int32) { C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (native *OpenGL) GetShaderParameter(shader uint32, param uint32) int32 {\n\tresult := int32(0)\n\tgl.GetShaderiv(shader, param, &result)\n\treturn result\n}", "func (debugging *debuggingOpenGL) GetShaderParameter(shader uint32, param uint32) int32 {\n\tdebugging.recordEntry(\"GetShaderParameter\", shader, p...
[ "0.6661247", "0.66229105", "0.64651537", "0.6363881", "0.6201076", "0.60537016", "0.58989567", "0.5865822", "0.5832206", "0.5689874", "0.5681113", "0.56488144", "0.56488144", "0.5644336", "0.5615071", "0.5604294", "0.5508281", "0.5505807", "0.5502464", "0.5499242", "0.5486645...
0.54317683
28
return a string describing the current GL connection
func GetString(name uint32) *uint8 { ret := C.glowGetString(gpGetString, (C.GLenum)(name)) return (*uint8)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (conn *Conn) String() string {\n\tstr := \"GoIRC Connection\\n\"\n\tstr += \"----------------\\n\\n\"\n\tif conn.Connected() {\n\t\tstr += \"Connected to \" + conn.cfg.Server + \"\\n\\n\"\n\t} else {\n\t\tstr += \"Not currently connected!\\n\\n\"\n\t}\n\tstr += conn.Me().String() + \"\\n\"\n\tif conn.st != ni...
[ "0.60571283", "0.60210174", "0.59276", "0.5748914", "0.55196834", "0.5480027", "0.54697454", "0.5464748", "0.54230994", "0.53654164", "0.53230923", "0.5318965", "0.52613574", "0.5255681", "0.5249773", "0.5245302", "0.522117", "0.5210933", "0.5184928", "0.5180495", "0.5159536"...
0.0
-1
retrieve the index of a subroutine uniform of a given shader stage within a program
func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 { ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetSubroutineIndex(program uint32...
[ "0.74622273", "0.71223706", "0.71164", "0.70962393", "0.70962393", "0.7071756", "0.6783698", "0.6783698", "0.6716894", "0.6403526", "0.6316259", "0.622342", "0.6217698", "0.6169233", "0.61134875", "0.61072636", "0.6034793", "0.6034793", "0.60258925", "0.6024647", "0.6005321",...
0.68214595
7
retrieve the location of a subroutine uniform of a given shader stage within a program
func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 { ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *int8) int32 {\n ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name)))\n return (int32)(ret)\n}", "func GetSubroutineUniformLocation(prog...
[ "0.76111084", "0.7107512", "0.69044673", "0.65629286", "0.65108573", "0.65108573", "0.6393616", "0.6313993", "0.62833077", "0.6227792", "0.61834896", "0.6163104", "0.61517715", "0.60892236", "0.60604507", "0.6057482", "0.6057482", "0.6057007", "0.6026584", "0.59949034", "0.59...
0.71867234
2
query the properties of a sync object
func GetSynciv(sync uintptr, pname uint32, count int32, length *int32, values *int32) { C.glowGetSynciv(gpGetSynciv, (C.GLsync)(sync), (C.GLenum)(pname), (C.GLsizei)(count), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(values))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (wo *WorkOrder) QueryProperties() *PropertyQuery {\n\treturn (&WorkOrderClient{wo.config}).QueryProperties(wo)\n}", "func (obj *GenericObject) GetPropertiesRaw(ctx context.Context) (json.RawMessage, error) {\n\tresult := &struct {\n\t\tProp json.RawMessage `json:\"qProp\"`\n\t}{}\n\terr := obj.RPC(ctx, \"Ge...
[ "0.5661496", "0.54471743", "0.54366076", "0.5387112", "0.53325474", "0.53034806", "0.5265076", "0.5244348", "0.5201339", "0.5199312", "0.51650417", "0.5152612", "0.51299745", "0.5112904", "0.51069397", "0.5097796", "0.50891083", "0.5075836", "0.5053903", "0.5042877", "0.50428...
0.0
-1
return a texture image
func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) { C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Font) GetTexture() *Texture { return f.texture }", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGe...
[ "0.75846326", "0.72301996", "0.71188384", "0.71088463", "0.71088463", "0.7064863", "0.69811064", "0.6970473", "0.6826661", "0.6795502", "0.67854035", "0.6785349", "0.66961575", "0.667603", "0.6584404", "0.6564846", "0.6516292", "0.6508075", "0.6506929", "0.6496524", "0.648789...
0.6089327
48
return a texture image
func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) { C.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Font) GetTexture() *Texture { return f.texture }", "func (t *Three) Texture() *Texture {\n\tp := t.ctx.Get(\"Texture\")\n\treturn TextureFromJSObject(p)\n}", "func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall6(gpGe...
[ "0.75846326", "0.72301996", "0.71188384", "0.7064863", "0.69811064", "0.6970473", "0.6826661", "0.6795502", "0.67854035", "0.6785349", "0.66961575", "0.667603", "0.6584404", "0.6564846", "0.6516292", "0.6508075", "0.6506929", "0.6496524", "0.64878935", "0.64811677", "0.648116...
0.71088463
4
retrieve a subregion of a texture image from a texture object
func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) { C.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) {\n\tsyscall.Syscall12(gpGetTextureSubImage, 12, uintptr(texture), uintptr(level), uintptr(xoffset), uintptr(y...
[ "0.7286918", "0.6765079", "0.6692707", "0.6692707", "0.63971144", "0.63278204", "0.6294978", "0.6294978", "0.61546844", "0.6146687", "0.6085889", "0.6085889", "0.6063762", "0.6063762", "0.60630924", "0.60630924", "0.6002658", "0.6002658", "0.6002629", "0.59801304", "0.5979828...
0.71932465
2
retrieve information about varying variables selected for transform feedback
func GetTransformFeedbackVarying(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { C.glowGetTransformFeedbackVarying(gpGetTransformFeedbackVarying, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLsizei)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p Predicate) variables() []Variable {\n\tres := make([]Variable, 0, len(p.parameters))\n\tfor _, v := range p.parameters {\n\t\tif isVar(v.name) {\n\t\t\tres = append(res, v)\n\t\t}\n\t}\n\treturn res\n}", "func GetVariables() (int, int, int) {\n\treturn 1, 2, 3\n}", "func (o ValidatingAdmissionPolicySpe...
[ "0.5756089", "0.563979", "0.555666", "0.53868896", "0.5377409", "0.5373856", "0.53702736", "0.53682876", "0.52849257", "0.5228304", "0.52011526", "0.5184828", "0.5183603", "0.51535016", "0.5127681", "0.5127261", "0.5110287", "0.5109611", "0.51084614", "0.5063128", "0.5054515"...
0.47441632
42
query the state of a transform feedback object.
func GetTransformFeedbackiv(xfb uint32, pname uint32, param *int32) { C.glowGetTransformFeedbackiv(gpGetTransformFeedbackiv, (C.GLuint)(xfb), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *Note) State() interface{} {\n\td := noteDiff{\n SubKey: &o.SubKey,\n Number: &o.Number,\n Velocity: &o.Velocity,\n }\n return d\n}", "func (o AttachmentAccepterOutput) State() pulumi.StringOutput {\n\treturn o.ApplyT(func(v *AttachmentAccepter) pulumi.StringOutput { return v.State }).(pulumi....
[ "0.5199793", "0.5002224", "0.49215958", "0.48676807", "0.48359615", "0.47546482", "0.4748522", "0.4724842", "0.47211975", "0.4716928", "0.4712273", "0.46745512", "0.46518582", "0.46478093", "0.4626848", "0.46145496", "0.46115634", "0.46115634", "0.46115473", "0.45982036", "0....
0.0
-1
retrieve the index of a named uniform block
func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 { ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName))) return (uint32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if...
[ "0.7923487", "0.76378137", "0.73417115", "0.72219354", "0.6544128", "0.6544128", "0.64430076", "0.6195887", "0.6187461", "0.6103532", "0.59265757", "0.59039944", "0.58446866", "0.58275574", "0.5662543", "0.5638315", "0.56180334", "0.56180334", "0.5613862", "0.5613862", "0.559...
0.7303142
4
retrieve the index of a named uniform block
func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) { C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetUniformBlockIndex(program uint32, uniformBlockName *int8) uint32 {\n ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName)))\n return (uint32)(ret)\n}", "func (s *Shader) getUniformBlockLocation(name string) (index uint32) {\n\t// if...
[ "0.7923487", "0.76378137", "0.73417115", "0.7303142", "0.7303142", "0.72219354", "0.6544128", "0.6544128", "0.64430076", "0.6195887", "0.6187461", "0.6103532", "0.59265757", "0.59039944", "0.58446866", "0.58275574", "0.5662543", "0.5638315", "0.56180334", "0.56180334", "0.561...
0.51421124
75
Returns the location of a uniform variable
func GetUniformLocation(program uint32, name *uint8) int32 { ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) return (int32)(ret) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (uni *Uniform) Location(gs *GLS) int32 {\n\n\tloc := gs.prog.GetUniformLocation(uni.name)\n\treturn loc\n}", "func Uniform1i(location int32, v0 int32) {\n C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0))\n}", "func GetUniformfv(program uint32, location int32, params *float32) {\n C.glowG...
[ "0.74809337", "0.62520397", "0.62455446", "0.6181303", "0.6095751", "0.6056892", "0.60137236", "0.6006182", "0.59943587", "0.5986026", "0.59797496", "0.59142804", "0.59123516", "0.5901236", "0.5888232", "0.5887566", "0.58766073", "0.5840446", "0.58348995", "0.5834894", "0.577...
0.55388176
43