17ec681f3Smrg/************************************************************************** 27ec681f3Smrg * 37ec681f3Smrg * Copyright 2010 Luca Barbieri 47ec681f3Smrg * 57ec681f3Smrg * Permission is hereby granted, free of charge, to any person obtaining 67ec681f3Smrg * a copy of this software and associated documentation files (the 77ec681f3Smrg * "Software"), to deal in the Software without restriction, including 87ec681f3Smrg * without limitation the rights to use, copy, modify, merge, publish, 97ec681f3Smrg * distribute, sublicense, and/or sell copies of the Software, and to 107ec681f3Smrg * permit persons to whom the Software is furnished to do so, subject to 117ec681f3Smrg * the following conditions: 127ec681f3Smrg * 137ec681f3Smrg * The above copyright notice and this permission notice (including the 147ec681f3Smrg * next paragraph) shall be included in all copies or substantial 157ec681f3Smrg * portions of the Software. 167ec681f3Smrg * 177ec681f3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 187ec681f3Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 197ec681f3Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 207ec681f3Smrg * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 217ec681f3Smrg * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 227ec681f3Smrg * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 237ec681f3Smrg * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 247ec681f3Smrg * 257ec681f3Smrg **************************************************************************/ 267ec681f3Smrg 277ec681f3Smrg#ifndef U_DEBUG_DESCRIBE_H_ 287ec681f3Smrg#define U_DEBUG_DESCRIBE_H_ 297ec681f3Smrg 307ec681f3Smrg#ifdef __cplusplus 317ec681f3Smrgextern "C" { 327ec681f3Smrg#endif 337ec681f3Smrg 347ec681f3Smrgstruct pipe_reference; 357ec681f3Smrgstruct pipe_resource; 367ec681f3Smrgstruct pipe_surface; 377ec681f3Smrgstruct pipe_sampler_view; 387ec681f3Smrgstruct pipe_image_view; 397ec681f3Smrg 407ec681f3Smrg/* a 256-byte buffer is necessary and sufficient */ 417ec681f3Smrgvoid debug_describe_reference(char* buf, const struct pipe_reference*ptr); 427ec681f3Smrgvoid debug_describe_resource(char* buf, const struct pipe_resource *ptr); 437ec681f3Smrgvoid debug_describe_surface(char* buf, const struct pipe_surface *ptr); 447ec681f3Smrgvoid debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr); 457ec681f3Smrgvoid debug_describe_image_view(char* buf, const struct pipe_image_view *ptr); 467ec681f3Smrgvoid debug_describe_so_target(char* buf, 477ec681f3Smrg const struct pipe_stream_output_target *ptr); 487ec681f3Smrg 497ec681f3Smrg#ifdef __cplusplus 507ec681f3Smrg} 517ec681f3Smrg#endif 527ec681f3Smrg 537ec681f3Smrg#endif /* U_DEBUG_DESCRIBE_H_ */ 54