Lines Matching defs:template
46 struct pipe_resource template;
48 memset(&template, 0, sizeof(template));
50 template.screen = device->pscreen;
53 template.target = pCreateInfo->arrayLayers > 1 ? PIPE_TEXTURE_1D_ARRAY : PIPE_TEXTURE_1D;
57 template.target = pCreateInfo->arrayLayers > 1 ? PIPE_TEXTURE_2D_ARRAY : PIPE_TEXTURE_2D;
60 template.target = PIPE_TEXTURE_3D;
64 template.format = lvp_vk_format_to_pipe_format(pCreateInfo->format);
66 bool is_ds = util_format_is_depth_or_stencil(template.format);
69 template.bind |= PIPE_BIND_RENDER_TARGET;
72 template.bind |= PIPE_BIND_SAMPLER_VIEW;
77 template.bind |= PIPE_BIND_RENDER_TARGET;
79 template.bind |= PIPE_BIND_DEPTH_STENCIL;
83 template.bind |= PIPE_BIND_DEPTH_STENCIL;
87 template.bind |= PIPE_BIND_SAMPLER_VIEW;
90 template.bind |= PIPE_BIND_SHADER_IMAGE;
92 template.width0 = pCreateInfo->extent.width;
93 template.height0 = pCreateInfo->extent.height;
94 template.depth0 = pCreateInfo->extent.depth;
95 template.array_size = pCreateInfo->arrayLayers;
96 template.last_level = pCreateInfo->mipLevels - 1;
97 template.nr_samples = pCreateInfo->samples;
98 template.nr_storage_samples = pCreateInfo->samples;
100 &template,
296 struct pipe_resource template;
297 memset(&template, 0, sizeof(struct pipe_resource));
300 template.bind |= PIPE_BIND_CONSTANT_BUFFER;
302 template.screen = device->pscreen;
303 template.target = PIPE_BUFFER;
304 template.format = PIPE_FORMAT_R8_UNORM;
305 template.width0 = buffer->size;
306 template.height0 = 1;
307 template.depth0 = 1;
308 template.array_size = 1;
310 template.bind |= PIPE_BIND_SAMPLER_VIEW;
312 template.bind |= PIPE_BIND_SHADER_BUFFER;
314 template.bind |= PIPE_BIND_SHADER_IMAGE;
315 template.flags = PIPE_RESOURCE_FLAG_DONT_OVER_ALLOCATE;
317 &template,