Lines Matching refs:templat
107 struct pipe_resource templat, *tex; in util_pstipple_create_stipple_texture() local
109 memset(&templat, 0, sizeof(templat)); in util_pstipple_create_stipple_texture()
110 templat.target = PIPE_TEXTURE_2D; in util_pstipple_create_stipple_texture()
111 templat.format = PIPE_FORMAT_A8_UNORM; in util_pstipple_create_stipple_texture()
112 templat.last_level = 0; in util_pstipple_create_stipple_texture()
113 templat.width0 = 32; in util_pstipple_create_stipple_texture()
114 templat.height0 = 32; in util_pstipple_create_stipple_texture()
115 templat.depth0 = 1; in util_pstipple_create_stipple_texture()
116 templat.array_size = 1; in util_pstipple_create_stipple_texture()
117 templat.bind = PIPE_BIND_SAMPLER_VIEW; in util_pstipple_create_stipple_texture()
119 tex = screen->resource_create(screen, &templat); in util_pstipple_create_stipple_texture()
135 struct pipe_sampler_view templat, *sv; in util_pstipple_create_sampler_view() local
137 u_sampler_view_default_template(&templat, tex, tex->format); in util_pstipple_create_sampler_view()
138 sv = pipe->create_sampler_view(pipe, tex, &templat); in util_pstipple_create_sampler_view()
150 struct pipe_sampler_state templat; in util_pstipple_create_sampler() local
153 memset(&templat, 0, sizeof(templat)); in util_pstipple_create_sampler()
154 templat.wrap_s = PIPE_TEX_WRAP_REPEAT; in util_pstipple_create_sampler()
155 templat.wrap_t = PIPE_TEX_WRAP_REPEAT; in util_pstipple_create_sampler()
156 templat.wrap_r = PIPE_TEX_WRAP_REPEAT; in util_pstipple_create_sampler()
157 templat.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; in util_pstipple_create_sampler()
158 templat.min_img_filter = PIPE_TEX_FILTER_NEAREST; in util_pstipple_create_sampler()
159 templat.mag_img_filter = PIPE_TEX_FILTER_NEAREST; in util_pstipple_create_sampler()
160 templat.normalized_coords = 1; in util_pstipple_create_sampler()
161 templat.min_lod = 0.0f; in util_pstipple_create_sampler()
162 templat.max_lod = 0.0f; in util_pstipple_create_sampler()
164 s = pipe->create_sampler_state(pipe, &templat); in util_pstipple_create_sampler()