当前位置: 首页>>代码示例>>C++>>正文


C++ identity_context函数代码示例

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


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


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