• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ identity_context函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中identity_context函数的典型用法代码示例。如果您正苦于以下问题:C++ identity_context函数的具体用法?C++ identity_context怎么用?C++ identity_context使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了identity_context函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: identity_surface_copy

static void
identity_surface_copy(struct pipe_context *_pipe,
                      struct pipe_surface *_dst,
                      unsigned dstx,
                      unsigned dsty,
                      struct pipe_surface *_src,
                      unsigned srcx,
                      unsigned srcy,
                      unsigned width,
                      unsigned height)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct identity_surface *id_surface_dst = identity_surface(_dst);
   struct identity_surface *id_surface_src = identity_surface(_src);
   struct pipe_context *pipe = id_pipe->pipe;
   struct pipe_surface *dst = id_surface_dst->surface;
   struct pipe_surface *src = id_surface_src->surface;

   pipe->surface_copy(pipe,
                      dst,
                      dstx,
                      dsty,
                      src,
                      srcx,
                      srcy,
                      width,
                      height);
}
开发者ID:aosm,项目名称:X11libs,代码行数:28,代码来源:id_context.c


示例2: identity_bind_sampler_states

static void
identity_bind_sampler_states(struct pipe_context *_pipe,
                             unsigned shader,
                             unsigned start,
                             unsigned num_samplers,
                             void **samplers)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   /* remove this when we have pipe->bind_sampler_states(..., start, ...) */
   assert(start == 0);

   switch (shader) {
   case PIPE_SHADER_VERTEX:
      pipe->bind_vertex_sampler_states(pipe, num_samplers, samplers);
      break;
   case PIPE_SHADER_GEOMETRY:
      pipe->bind_geometry_sampler_states(pipe, num_samplers, samplers);
      break;
   case PIPE_SHADER_FRAGMENT:
      pipe->bind_fragment_sampler_states(pipe, num_samplers, samplers);
      break;
   default:
      debug_error("Unexpected shader in identity_bind_sampler_states()");
   }
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:27,代码来源:id_context.c


示例3: identity_context_surface_destroy

static void
identity_context_surface_destroy(struct pipe_context *_pipe,
                                 struct pipe_surface *_surf)
{
   identity_surface_destroy(identity_context(_pipe),
                            identity_surface(_surf));
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:7,代码来源:id_context.c


示例4: identity_resource_copy_region

static void
identity_resource_copy_region(struct pipe_context *_pipe,
                              struct pipe_resource *_dst,
                              unsigned dst_level,
                              unsigned dstx,
                              unsigned dsty,
                              unsigned dstz,
                              struct pipe_resource *_src,
                              unsigned src_level,
                              const struct pipe_box *src_box)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct identity_resource *id_resource_dst = identity_resource(_dst);
   struct identity_resource *id_resource_src = identity_resource(_src);
   struct pipe_context *pipe = id_pipe->pipe;
   struct pipe_resource *dst = id_resource_dst->resource;
   struct pipe_resource *src = id_resource_src->resource;

   pipe->resource_copy_region(pipe,
                              dst,
                              dst_level,
                              dstx,
                              dsty,
                              dstz,
                              src,
                              src_level,
                              src_box);
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:28,代码来源:id_context.c


示例5: identity_context_transfer_destroy

static void
identity_context_transfer_destroy(struct pipe_context *_pipe,
                                  struct pipe_transfer *_transfer)
{
   identity_transfer_destroy(identity_context(_pipe),
                             identity_transfer(_transfer));
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:7,代码来源:id_context.c


示例6: identity_context_sampler_view_destroy

static void
identity_context_sampler_view_destroy(struct pipe_context *_pipe,
                                      struct pipe_sampler_view *_view)
{
   identity_sampler_view_destroy(identity_context(_pipe),
                                 identity_sampler_view(_view));
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:7,代码来源:id_context.c


示例7: identity_clear_depth_stencil

static void
identity_clear_depth_stencil(struct pipe_context *_pipe,
                             struct pipe_surface *_dst,
                             unsigned clear_flags,
                             double depth,
                             unsigned stencil,
                             unsigned dstx, unsigned dsty,
                             unsigned width, unsigned height)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct identity_surface *id_surface_dst = identity_surface(_dst);
   struct pipe_context *pipe = id_pipe->pipe;
   struct pipe_surface *dst = id_surface_dst->surface;

   pipe->clear_depth_stencil(pipe,
                             dst,
                             clear_flags,
                             depth,
                             stencil,
                             dstx,
                             dsty,
                             width,
                             height);

}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:25,代码来源:id_context.c


示例8: identity_draw_vbo

static void
identity_draw_vbo(struct pipe_context *_pipe,
                  const struct pipe_draw_info *info)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->draw_vbo(pipe, info);
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:9,代码来源:id_context.c


示例9: identity_create_depth_stencil_alpha_state

static void *
identity_create_depth_stencil_alpha_state(struct pipe_context *_pipe,
                                          const struct pipe_depth_stencil_alpha_state *depth_stencil_alpha)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   return pipe->create_depth_stencil_alpha_state(pipe,
                                                 depth_stencil_alpha);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例10: identity_set_viewport_state

static void
identity_set_viewport_state(struct pipe_context *_pipe,
                            const struct pipe_viewport_state *viewport)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->set_viewport_state(pipe,
                            viewport);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例11: identity_set_polygon_stipple

static void
identity_set_polygon_stipple(struct pipe_context *_pipe,
                             const struct pipe_poly_stipple *poly_stipple)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->set_polygon_stipple(pipe,
                             poly_stipple);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例12: identity_set_stencil_ref

static void
identity_set_stencil_ref(struct pipe_context *_pipe,
                         const struct pipe_stencil_ref *stencil_ref)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->set_stencil_ref(pipe,
                         stencil_ref);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例13: identity_delete_vs_state

static void
identity_delete_vs_state(struct pipe_context *_pipe,
                         void *vs)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->delete_vs_state(pipe,
                         vs);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例14: identity_create_vs_state

static void *
identity_create_vs_state(struct pipe_context *_pipe,
                         const struct pipe_shader_state *vs)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   return pipe->create_vs_state(pipe,
                                vs);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例15: identity_end_query

static void
identity_end_query(struct pipe_context *_pipe,
                   struct pipe_query *query)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->end_query(pipe,
                   query);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例16: identity_create_query

static struct pipe_query *
identity_create_query(struct pipe_context *_pipe,
                      unsigned query_type)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   return pipe->create_query(pipe,
                             query_type);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例17: identity_flush

static void
identity_flush(struct pipe_context *_pipe,
               struct pipe_fence_handle **fence)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->flush(pipe,
               fence);
}
开发者ID:jay8muel,项目名称:Renderfusion,代码行数:10,代码来源:id_context.c


示例18: identity_delete_depth_stencil_alpha_state

static void
identity_delete_depth_stencil_alpha_state(struct pipe_context *_pipe,
                                          void *depth_stencil_alpha)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->delete_depth_stencil_alpha_state(pipe,
                                          depth_stencil_alpha);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例19: identity_bind_fs_state

static void
identity_bind_fs_state(struct pipe_context *_pipe,
                       void *fs)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   pipe->bind_fs_state(pipe,
                       fs);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c


示例20: identity_create_blend_state

static void *
identity_create_blend_state(struct pipe_context *_pipe,
                            const struct pipe_blend_state *blend)
{
   struct identity_context *id_pipe = identity_context(_pipe);
   struct pipe_context *pipe = id_pipe->pipe;

   return pipe->create_blend_state(pipe,
                                   blend);
}
开发者ID:aosm,项目名称:X11libs,代码行数:10,代码来源:id_context.c



注:本文中的identity_context函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ idfObject函数代码示例发布时间:2022-05-30
下一篇:
C++ identity函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap