Path: blob/21.2-virgl/src/gallium/auxiliary/util/u_debug_describe.h
4561 views
/**************************************************************************1*2* Copyright 2010 Luca Barbieri3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sublicense, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial14* portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,17* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.19* IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE20* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION21* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION22* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.23*24**************************************************************************/2526#ifndef U_DEBUG_DESCRIBE_H_27#define U_DEBUG_DESCRIBE_H_2829#ifdef __cplusplus30extern "C" {31#endif3233struct pipe_reference;34struct pipe_resource;35struct pipe_surface;36struct pipe_sampler_view;37struct pipe_image_view;3839/* a 256-byte buffer is necessary and sufficient */40void debug_describe_reference(char* buf, const struct pipe_reference*ptr);41void debug_describe_resource(char* buf, const struct pipe_resource *ptr);42void debug_describe_surface(char* buf, const struct pipe_surface *ptr);43void debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr);44void debug_describe_image_view(char* buf, const struct pipe_image_view *ptr);45void debug_describe_so_target(char* buf,46const struct pipe_stream_output_target *ptr);4748#ifdef __cplusplus49}50#endif5152#endif /* U_DEBUG_DESCRIBE_H_ */535455