Lines Matching defs:view

1370                                 struct dzn_image_view *view,
1380 container_of(view->vk.image, struct dzn_image, vk);
1384 .baseMipLevel = view->vk.base_mip_level,
1386 .baseArrayLayer = view->vk.base_array_layer + base_layer,
1388 view->vk.layer_count - base_layer : layer_count,
1393 if (vk_format_is_depth_or_stencil(view->vk.format)) {
1420 VkClearColorValue color = adjust_clear_color(view->vk.format, &value->color);
1424 if (vk_format_is_sint(view->vk.format)) {
1432 } else if (vk_format_is_uint(view->vk.format)) {
2462 ID3D12GraphicsCommandList1_IASetIndexBuffer(cmdbuf->cmdlist, &cmdbuf->state.ib.view);
2553 cmdbuf->state.ib.view.Format = DXGI_FORMAT_R16_UINT;
2561 cmdbuf->state.ib.view.Format = DXGI_FORMAT_R32_UINT;
2564 cmdbuf->state.ib.view.SizeInBytes = *vertex_count * index_size;
2565 cmdbuf->state.ib.view.BufferLocation = ID3D12Resource_GetGPUVirtualAddress(index_buf);
2594 cmdbuf->state.ib.view.BufferLocation;
2604 dzn_index_type_from_dxgi_format(cmdbuf->state.ib.view.Format, false);
2635 cmdbuf->state.ib.view.SizeInBytes = *index_count * 4;
2636 cmdbuf->state.ib.view.BufferLocation = ID3D12Resource_GetGPUVirtualAddress(new_index_buf);
2637 cmdbuf->state.ib.view.Format = DXGI_FORMAT_R32_UINT;
2677 uint32_t index_size = cmdbuf->state.ib.view.Format == DXGI_FORMAT_R32_UINT ? 4 : 2;
2678 uint32_t max_indices = cmdbuf->state.ib.view.SizeInBytes / index_size;
2844 dzn_index_type_from_dxgi_format(cmdbuf->state.ib.view.Format, prim_restart) :
2872 cmdbuf->state.ib.view.BufferLocation);
2886 ib_view = cmdbuf->state.ib.view;
2887 cmdbuf->state.ib.view.BufferLocation = ID3D12Resource_GetGPUVirtualAddress(triangle_fan_index_buf);
2888 cmdbuf->state.ib.view.SizeInBytes = triangle_fan_index_buf_stride;
2889 cmdbuf->state.ib.view.Format = DXGI_FORMAT_R32_UINT;
2916 /* Restore the old IB view if we modified it during the triangle fan lowering */
2918 cmdbuf->state.ib.view = ib_view;
3375 struct dzn_image_view *view = NULL;
3379 view = cmdbuf->state.render.attachments.colors[pAttachments[i].colorAttachment].iview;
3384 view = cmdbuf->state.render.attachments.depth.iview;
3390 assert(!view || view == cmdbuf->state.render.attachments.depth.iview);
3391 view = cmdbuf->state.render.attachments.stencil.iview;
3396 if (!view)
3403 dzn_cmd_buffer_clear_attachment(cmdbuf, view, layout,
3864 D3D12_INDEX_BUFFER_VIEW ib_view = cmdbuf->state.ib.view;
3876 /* Restore the IB view if we modified it when lowering triangle fans. */
3878 cmdbuf->state.ib.view = ib_view;
3944 D3D12_INDEX_BUFFER_VIEW ib_view = cmdbuf->state.ib.view;
3957 /* Restore the IB view if we modified it when lowering triangle fans. */
3959 cmdbuf->state.ib.view = ib_view;
4060 cmdbuf->state.ib.view.BufferLocation = ID3D12Resource_GetGPUVirtualAddress(buf->res) + offset;
4061 cmdbuf->state.ib.view.SizeInBytes = buf->size - offset;
4064 cmdbuf->state.ib.view.Format = DXGI_FORMAT_R16_UINT;
4068 cmdbuf->state.ib.view.Format = DXGI_FORMAT_R32_UINT;