texturebindless.h revision 01e04c3f
101e04c3fSmrg/* 201e04c3fSmrg * Copyright © 2017 Valve Corporation. 301e04c3fSmrg * 401e04c3fSmrg * Permission is hereby granted, free of charge, to any person obtaining a 501e04c3fSmrg * copy of this software and associated documentation files (the "Software"), 601e04c3fSmrg * to deal in the Software without restriction, including without limitation 701e04c3fSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 801e04c3fSmrg * and/or sell copies of the Software, and to permit persons to whom the 901e04c3fSmrg * Software is furnished to do so, subject to the following conditions: 1001e04c3fSmrg * 1101e04c3fSmrg * The above copyright notice and this permission notice (including the next 1201e04c3fSmrg * paragraph) shall be included in all copies or substantial portions of the 1301e04c3fSmrg * Software. 1401e04c3fSmrg * 1501e04c3fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1601e04c3fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1701e04c3fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1801e04c3fSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1901e04c3fSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2001e04c3fSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2101e04c3fSmrg * DEALINGS IN THE SOFTWARE. 2201e04c3fSmrg */ 2301e04c3fSmrg 2401e04c3fSmrg#ifndef TEXTUREBINDLESS_H 2501e04c3fSmrg#define TEXTUREBINDLESS_H 2601e04c3fSmrg 2701e04c3fSmrg#include "glheader.h" 2801e04c3fSmrg 2901e04c3fSmrg#ifdef __cplusplus 3001e04c3fSmrgextern "C" { 3101e04c3fSmrg#endif 3201e04c3fSmrg 3301e04c3fSmrgstruct gl_context; 3401e04c3fSmrg 3501e04c3fSmrg/** 3601e04c3fSmrg * \name Internal functions 3701e04c3fSmrg */ 3801e04c3fSmrg/*@{*/ 3901e04c3fSmrg 4001e04c3fSmrgvoid 4101e04c3fSmrg_mesa_init_resident_handles(struct gl_context *ctx); 4201e04c3fSmrgvoid 4301e04c3fSmrg_mesa_free_resident_handles(struct gl_context *ctx); 4401e04c3fSmrg 4501e04c3fSmrgvoid 4601e04c3fSmrg_mesa_init_shared_handles(struct gl_shared_state *shared); 4701e04c3fSmrgvoid 4801e04c3fSmrg_mesa_free_shared_handles(struct gl_shared_state *shared); 4901e04c3fSmrg 5001e04c3fSmrgvoid 5101e04c3fSmrg_mesa_init_texture_handles(struct gl_texture_object *texObj); 5201e04c3fSmrgvoid 5301e04c3fSmrg_mesa_make_texture_handles_non_resident(struct gl_context *ctx, 5401e04c3fSmrg struct gl_texture_object *texObj); 5501e04c3fSmrgvoid 5601e04c3fSmrg_mesa_delete_texture_handles(struct gl_context *ctx, 5701e04c3fSmrg struct gl_texture_object *texObj); 5801e04c3fSmrg 5901e04c3fSmrgvoid 6001e04c3fSmrg_mesa_init_sampler_handles(struct gl_sampler_object *sampObj); 6101e04c3fSmrgvoid 6201e04c3fSmrg_mesa_delete_sampler_handles(struct gl_context *ctx, 6301e04c3fSmrg struct gl_sampler_object *sampObj); 6401e04c3fSmrg 6501e04c3fSmrg/*@}*/ 6601e04c3fSmrg 6701e04c3fSmrg/** 6801e04c3fSmrg * \name API functions 6901e04c3fSmrg */ 7001e04c3fSmrg/*@{*/ 7101e04c3fSmrg 7201e04c3fSmrgGLuint64 GLAPIENTRY 7301e04c3fSmrg_mesa_GetTextureHandleARB_no_error(GLuint texture); 7401e04c3fSmrg 7501e04c3fSmrgGLuint64 GLAPIENTRY 7601e04c3fSmrg_mesa_GetTextureHandleARB(GLuint texture); 7701e04c3fSmrg 7801e04c3fSmrgGLuint64 GLAPIENTRY 7901e04c3fSmrg_mesa_GetTextureSamplerHandleARB_no_error(GLuint texture, GLuint sampler); 8001e04c3fSmrg 8101e04c3fSmrgGLuint64 GLAPIENTRY 8201e04c3fSmrg_mesa_GetTextureSamplerHandleARB(GLuint texture, GLuint sampler); 8301e04c3fSmrg 8401e04c3fSmrgvoid GLAPIENTRY 8501e04c3fSmrg_mesa_MakeTextureHandleResidentARB_no_error(GLuint64 handle); 8601e04c3fSmrg 8701e04c3fSmrgvoid GLAPIENTRY 8801e04c3fSmrg_mesa_MakeTextureHandleResidentARB(GLuint64 handle); 8901e04c3fSmrg 9001e04c3fSmrgvoid GLAPIENTRY 9101e04c3fSmrg_mesa_MakeTextureHandleNonResidentARB_no_error(GLuint64 handle); 9201e04c3fSmrg 9301e04c3fSmrgvoid GLAPIENTRY 9401e04c3fSmrg_mesa_MakeTextureHandleNonResidentARB(GLuint64 handle); 9501e04c3fSmrg 9601e04c3fSmrgGLuint64 GLAPIENTRY 9701e04c3fSmrg_mesa_GetImageHandleARB_no_error(GLuint texture, GLint level, GLboolean layered, 9801e04c3fSmrg GLint layer, GLenum format); 9901e04c3fSmrg 10001e04c3fSmrgGLuint64 GLAPIENTRY 10101e04c3fSmrg_mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered, 10201e04c3fSmrg GLint layer, GLenum format); 10301e04c3fSmrg 10401e04c3fSmrgvoid GLAPIENTRY 10501e04c3fSmrg_mesa_MakeImageHandleResidentARB_no_error(GLuint64 handle, GLenum access); 10601e04c3fSmrg 10701e04c3fSmrgvoid GLAPIENTRY 10801e04c3fSmrg_mesa_MakeImageHandleResidentARB(GLuint64 handle, GLenum access); 10901e04c3fSmrg 11001e04c3fSmrgvoid GLAPIENTRY 11101e04c3fSmrg_mesa_MakeImageHandleNonResidentARB_no_error(GLuint64 handle); 11201e04c3fSmrg 11301e04c3fSmrgvoid GLAPIENTRY 11401e04c3fSmrg_mesa_MakeImageHandleNonResidentARB(GLuint64 handle); 11501e04c3fSmrg 11601e04c3fSmrgGLboolean GLAPIENTRY 11701e04c3fSmrg_mesa_IsTextureHandleResidentARB_no_error(GLuint64 handle); 11801e04c3fSmrg 11901e04c3fSmrgGLboolean GLAPIENTRY 12001e04c3fSmrg_mesa_IsTextureHandleResidentARB(GLuint64 handle); 12101e04c3fSmrg 12201e04c3fSmrgGLboolean GLAPIENTRY 12301e04c3fSmrg_mesa_IsImageHandleResidentARB_no_error(GLuint64 handle); 12401e04c3fSmrg 12501e04c3fSmrgGLboolean GLAPIENTRY 12601e04c3fSmrg_mesa_IsImageHandleResidentARB(GLuint64 handle); 12701e04c3fSmrg 12801e04c3fSmrg/*@}*/ 12901e04c3fSmrg 13001e04c3fSmrg#ifdef __cplusplus 13101e04c3fSmrg} 13201e04c3fSmrg#endif 13301e04c3fSmrg 13401e04c3fSmrg#endif 135