21using namespace blender::gpu;
51 if (stack.is_empty()) {
59 r_name_buf[
len - 3] =
'\0';
69 if (stack.is_empty()) {
201 for (
int image_unit = 0; image_unit <
GPU_MAX_IMAGE; image_unit++) {
211 if (texture_formats_shader[image_unit] != texture_formats_state[image_unit]) [[unlikely]] {
214 "Error in GPU_debug_validate_binding_image_format: Image format mismatch detected for "
215 "shader '%s' at binding %d (shader format '%s' vs. bound texture format '%s').\n",
#define BLI_assert_unreachable()
constexpr bool contains(int64_t value) const
virtual void debug_group_begin(const char *, int)
virtual void debug_capture_scope_end(void *scope)=0
StateManager * state_manager
virtual bool debug_capture_scope_begin(void *scope)=0
virtual void * debug_capture_scope_create(const char *name)=0
virtual void debug_capture_end()=0
virtual bool debug_capture_begin(const char *title)=0
virtual void debug_group_end()
std::array< TextureWriteFormat, GPU_MAX_IMAGE > image_formats_
ShaderInterface * interface
std::array< TextureWriteFormat, GPU_MAX_IMAGE > image_formats
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
Vector< StringRef > DebugStack
void debug_validate_binding_image_format()
constexpr TextureFormat to_texture_format(TextureTargetFormat format)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void * GPU_debug_capture_scope_create(const char *name)
void GPU_debug_capture_begin(const char *title)
void GPU_debug_capture_end()
size_t BLI_snprintf_rlen(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
void GPU_debug_group_end()
void GPU_debug_capture_scope_end(void *scope)
bool GPU_debug_group_match(const char *ref)
const char * GPU_texture_format_name(gpu::TextureFormat format)
void GPU_debug_get_groups_names(int name_buf_maxncpy, char *r_name_buf)
void GPU_debug_group_begin(const char *name)
bool GPU_debug_capture_scope_begin(void *scope)