Lines Matching refs:vk

37 class ImageSubresourceRange : public vk::VkImageSubresourceRange
40 ImageSubresourceRange (vk::VkImageAspectFlags aspectMask,
47 class ComponentMapping : public vk::VkComponentMapping
50 ComponentMapping (vk::VkComponentSwizzle r = vk::VK_COMPONENT_SWIZZLE_R,
51 vk::VkComponentSwizzle g = vk::VK_COMPONENT_SWIZZLE_G,
52 vk::VkComponentSwizzle b = vk::VK_COMPONENT_SWIZZLE_B,
53 vk::VkComponentSwizzle a = vk::VK_COMPONENT_SWIZZLE_A);
56 class ImageViewCreateInfo : public vk::VkImageViewCreateInfo
59 ImageViewCreateInfo (vk::VkImage image,
60 vk::VkImageViewType viewType,
61 vk::VkFormat format,
62 const vk::VkImageSubresourceRange& subresourceRange,
63 const vk::VkComponentMapping& components = ComponentMapping(),
64 vk::VkImageViewCreateFlags flags = 0);
66 ImageViewCreateInfo (vk::VkImage image,
67 vk::VkImageViewType viewType,
68 vk::VkFormat format,
69 const vk::VkComponentMapping& components = ComponentMapping(),
70 vk::VkImageViewCreateFlags flags = 0);
73 class BufferViewCreateInfo : public vk::VkBufferViewCreateInfo
76 BufferViewCreateInfo (vk::VkBuffer buffer,
77 vk::VkFormat format,
78 vk::VkDeviceSize offset,
79 vk::VkDeviceSize range);
82 class BufferCreateInfo : public vk::VkBufferCreateInfo
85 BufferCreateInfo (vk::VkDeviceSize size,
86 vk::VkBufferCreateFlags usage,
87 vk::VkSharingMode sharingMode = vk::VK_SHARING_MODE_EXCLUSIVE,
90 vk::VkBufferCreateFlags flags = 0);
99 class ImageCreateInfo : public vk::VkImageCreateInfo
102 ImageCreateInfo (vk::VkImageType imageType,
103 vk::VkFormat format,
104 vk::VkExtent3D extent,
107 vk::VkSampleCountFlagBits samples,
108 vk::VkImageTiling tiling,
109 vk::VkImageUsageFlags usage,
110 vk::VkSharingMode sharingMode = vk::VK_SHARING_MODE_EXCLUSIVE,
113 vk::VkImageCreateFlags flags = 0,
114 vk::VkImageLayout initialLayout = vk::VK_IMAGE_LAYOUT_UNDEFINED);
123 class FramebufferCreateInfo : public vk::VkFramebufferCreateInfo
126 FramebufferCreateInfo (vk::VkRenderPass renderPass,
127 const std::vector<vk::VkImageView>& attachments,
133 class AttachmentDescription : public vk::VkAttachmentDescription
136 AttachmentDescription (vk::VkFormat format,
137 vk::VkSampleCountFlagBits samples,
138 vk::VkAttachmentLoadOp loadOp,
139 vk::VkAttachmentStoreOp storeOp,
140 vk::VkAttachmentLoadOp stencilLoadOp,
141 vk::VkAttachmentStoreOp stencilStoreOp,
142 vk::VkImageLayout initialLayout,
143 vk::VkImageLayout finalLayout);
145 AttachmentDescription (const vk::VkAttachmentDescription &);
148 class AttachmentReference : public vk::VkAttachmentReference
151 AttachmentReference (deUint32 attachment, vk::VkImageLayout layout);
155 class SubpassDescription : public vk::VkSubpassDescription
158 SubpassDescription (vk::VkPipelineBindPoint pipelineBindPoint,
159 vk::VkSubpassDescriptionFlags flags,
161 const vk::VkAttachmentReference* inputAttachments,
163 const vk::VkAttachmentReference* colorAttachments,
164 const vk::VkAttachmentReference* resolveAttachments,
165 vk::VkAttachmentReference depthStencilAttachment,
169 SubpassDescription (const vk::VkSubpassDescription& other);
174 std::vector<vk::VkAttachmentReference> m_inputAttachments;
175 std::vector<vk::VkAttachmentReference> m_colorAttachments;
176 std::vector<vk::VkAttachmentReference> m_resolveAttachments;
179 vk::VkAttachmentReference m_depthStencilAttachment;
182 class SubpassDependency : public vk::VkSubpassDependency
187 vk::VkPipelineStageFlags srcStageMask,
188 vk::VkPipelineStageFlags dstStageMask,
189 vk::VkAccessFlags srcAccessMask,
190 vk::VkAccessFlags dstAccessMask,
191 vk::VkDependencyFlags dependencyFlags);
193 SubpassDependency (const vk::VkSubpassDependency& other);
196 class RenderPassCreateInfo : public vk::VkRenderPassCreateInfo
199 RenderPassCreateInfo (const std::vector<vk::VkAttachmentDescription>& attachments,
200 const std::vector<vk::VkSubpassDescription>& subpasses,
201 const std::vector<vk::VkSubpassDependency>& dependiences = std::vector<vk::VkSubpassDependency>());
204 const vk::VkAttachmentDescription* pAttachments = DE_NULL,
206 const vk::VkSubpassDescription* pSubpasses = DE_NULL,
208 const vk::VkSubpassDependency* pDependiences = DE_NULL);
210 void addAttachment (vk::VkAttachmentDescription attachment);
211 void addSubpass (vk::VkSubpassDescription subpass);
212 void addDependency (vk::VkSubpassDependency dependency);
219 std::vector<vk::VkAttachmentDescription> m_attachmentsStructs;
220 std::vector<vk::VkSubpassDescription> m_subpassesStructs;
221 std::vector<vk::VkSubpassDependency> m_dependiencesStructs;
227 class RenderPassBeginInfo : public vk::VkRenderPassBeginInfo
230 RenderPassBeginInfo (vk::VkRenderPass renderPass,
231 vk::VkFramebuffer framebuffer,
232 vk::VkRect2D renderArea,
233 const std::vector<vk::VkClearValue>& clearValues = std::vector<vk::VkClearValue>());
236 std::vector<vk::VkClearValue> m_clearValues;
242 class CmdPoolCreateInfo : public vk::VkCommandPoolCreateInfo
246 vk::VkCommandPoolCreateFlags flags = vk::VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT);
249 class CmdBufferBeginInfo : public vk::VkCommandBufferBeginInfo
252 CmdBufferBeginInfo (vk::VkCommandBufferUsageFlags flags = 0);
255 class DescriptorPoolSize : public vk::VkDescriptorPoolSize
258 DescriptorPoolSize (vk::VkDescriptorType _type, deUint32 _descriptorCount)
265 class DescriptorPoolCreateInfo : public vk::VkDescriptorPoolCreateInfo
268 DescriptorPoolCreateInfo (const std::vector<vk::VkDescriptorPoolSize>& poolSizeCounts,
269 vk::VkDescriptorPoolCreateFlags flags,
272 DescriptorPoolCreateInfo& addDescriptors (vk::VkDescriptorType type, deUint32 count);
275 std::vector<vk::VkDescriptorPoolSize> m_poolSizeCounts;
278 class DescriptorSetLayoutCreateInfo : public vk::VkDescriptorSetLayoutCreateInfo
281 DescriptorSetLayoutCreateInfo (deUint32 bindingCount, const vk::VkDescriptorSetLayoutBinding* pBindings);
284 class PipelineLayoutCreateInfo : public vk::VkPipelineLayoutCreateInfo
288 const vk::VkDescriptorSetLayout* pSetLayouts,
290 const vk::VkPushConstantRange* pPushConstantRanges = DE_NULL);
292 PipelineLayoutCreateInfo (const std::vector<vk::VkDescriptorSetLayout>& setLayouts = std::vector<vk::VkDescriptorSetLayout>(),
294 const vk::VkPushConstantRange* pPushConstantRanges = DE_NULL);
297 std::vector<vk::VkDescriptorSetLayout> m_setLayouts;
298 std::vector<vk::VkPushConstantRange> m_pushConstantRanges;
301 class PipelineCreateInfo : public vk::VkGraphicsPipelineCreateInfo
304 class VertexInputState : public vk::VkPipelineVertexInputStateCreateInfo
308 const vk::VkVertexInputBindingDescription* pVertexBindingDescriptions = NULL,
310 const vk::VkVertexInputAttributeDescription* pVertexAttributeDescriptions = NULL);
313 const vk::VkVertexInputBindingDivisorDescriptionEXT* pVertexBindingDivisors = NULL);
315 vk::VkPipelineVertexInputDivisorStateCreateInfoEXT m_divisorState;
318 class InputAssemblerState : public vk::VkPipelineInputAssemblyStateCreateInfo
321 InputAssemblerState (vk::VkPrimitiveTopology topology, vk::VkBool32 primitiveRestartEnable = false);
324 class TessellationState : public vk::VkPipelineTessellationStateCreateInfo
330 class ViewportState : public vk::VkPipelineViewportStateCreateInfo
334 std::vector<vk::VkViewport> viewports = std::vector<vk::VkViewport>(0),
335 std::vector<vk::VkRect2D> scissors = std::vector<vk::VkRect2D>(0));
340 std::vector<vk::VkViewport> m_viewports;
341 std::vector<vk::VkRect2D> m_scissors;
344 class RasterizerState : public vk::VkPipelineRasterizationStateCreateInfo
347 RasterizerState (vk::VkBool32 depthClampEnable = false,
348 vk::VkBool32 rasterizerDiscardEnable = false,
349 vk::VkPolygonMode polygonMode = vk::VK_POLYGON_MODE_FILL,
350 vk::VkCullModeFlags cullMode = vk::VK_CULL_MODE_NONE,
351 vk::VkFrontFace frontFace = vk::VK_FRONT_FACE_CLOCKWISE,
352 vk::VkBool32 depthBiasEnable = true,
359 class MultiSampleState : public vk::VkPipelineMultisampleStateCreateInfo
362 MultiSampleState (vk::VkSampleCountFlagBits rasterizationSamples = vk::VK_SAMPLE_COUNT_1_BIT,
363 vk::VkBool32 sampleShadingEnable = false,
365 const std::vector<vk::VkSampleMask>& sampleMask = std::vector<vk::VkSampleMask>(1, 0xffffffffu),
373 std::vector<vk::VkSampleMask> m_sampleMask;
376 class ColorBlendState : public vk::VkPipelineColorBlendStateCreateInfo
379 class Attachment : public vk::VkPipelineColorBlendAttachmentState
382 Attachment (vk::VkBool32 blendEnable = false,
383 vk::VkBlendFactor srcColorBlendFactor = vk::VK_BLEND_FACTOR_SRC_COLOR,
384 vk::VkBlendFactor dstColorBlendFactor = vk::VK_BLEND_FACTOR_DST_COLOR,
385 vk::VkBlendOp colorBlendOp = vk::VK_BLEND_OP_ADD,
386 vk::VkBlendFactor srcAlphaBlendFactor = vk::VK_BLEND_FACTOR_SRC_COLOR,
387 vk::VkBlendFactor dstAlphaBlendFactor = vk::VK_BLEND_FACTOR_DST_COLOR,
388 vk::VkBlendOp alphaBlendOp = vk::VK_BLEND_OP_ADD,
389 vk::VkColorComponentFlags colorWriteMask = vk::VK_COLOR_COMPONENT_R_BIT|
390 vk::VK_COLOR_COMPONENT_G_BIT|
391 vk::VK_COLOR_COMPONENT_B_BIT|
392 vk::VK_COLOR_COMPONENT_A_BIT);
395 ColorBlendState (const std::vector<vk::VkPipelineColorBlendAttachmentState>& attachments,
396 vk::VkBool32 alphaToCoverageEnable = false,
397 vk::VkLogicOp logicOp = vk::VK_LOGIC_OP_COPY);
400 const vk::VkPipelineColorBlendAttachmentState* attachments,
401 vk::VkBool32 logicOpEnable = false,
402 vk::VkLogicOp logicOp = vk::VK_LOGIC_OP_COPY);
404 ColorBlendState (const vk::VkPipelineColorBlendStateCreateInfo& createInfo);
409 std::vector<vk::VkPipelineColorBlendAttachmentState> m_attachments;
412 class DepthStencilState : public vk::VkPipelineDepthStencilStateCreateInfo
415 class StencilOpState : public vk::VkStencilOpState
418 StencilOpState (vk::VkStencilOp failOp = vk::VK_STENCIL_OP_REPLACE,
419 vk::VkStencilOp passOp = vk::VK_STENCIL_OP_REPLACE,
420 vk::VkStencilOp depthFailOp = vk::VK_STENCIL_OP_REPLACE,
421 vk::VkCompareOp compareOp = vk::VK_COMPARE_OP_ALWAYS,
427 DepthStencilState (vk::VkBool32 depthTestEnable = false,
428 vk::VkBool32 depthWriteEnable = false,
429 vk::VkCompareOp depthCompareOp = vk::VK_COMPARE_OP_ALWAYS,
430 vk::VkBool32 depthBoundsTestEnable = false,
431 vk::VkBool32 stencilTestEnable = false,
438 class PipelineShaderStage : public vk::VkPipelineShaderStageCreateInfo
441 PipelineShaderStage (vk::VkShaderModule shaderModule, const char* pName, vk::VkShaderStageFlagBits stage);
444 class DynamicState : public vk::VkPipelineDynamicStateCreateInfo
447 DynamicState (const std::vector<vk::VkDynamicState>& dynamicStates = std::vector<vk::VkDynamicState>(0));
452 std::vector<vk::VkDynamicState> m_dynamicStates;
455 PipelineCreateInfo (vk::VkPipelineLayout layout,
456 vk::VkRenderPass renderPass,
458 vk::VkPipelineCreateFlags flags);
460 PipelineCreateInfo& addShader (const vk::VkPipelineShaderStageCreateInfo& shader);
462 PipelineCreateInfo& addState (const vk::VkPipelineVertexInputStateCreateInfo& state);
463 PipelineCreateInfo& addState (const vk::VkPipelineInputAssemblyStateCreateInfo& state);
464 PipelineCreateInfo& addState (const vk::VkPipelineColorBlendStateCreateInfo& state);
465 PipelineCreateInfo& addState (const vk::VkPipelineViewportStateCreateInfo& state);
466 PipelineCreateInfo& addState (const vk::VkPipelineDepthStencilStateCreateInfo& state);
467 PipelineCreateInfo& addState (const vk::VkPipelineTessellationStateCreateInfo& state);
468 PipelineCreateInfo& addState (const vk::VkPipelineRasterizationStateCreateInfo& state);
469 PipelineCreateInfo& addState (const vk::VkPipelineMultisampleStateCreateInfo& state);
470 PipelineCreateInfo& addState (const vk::VkPipelineDynamicStateCreateInfo& state);
473 std::vector<vk::VkPipelineShaderStageCreateInfo> m_shaders;
475 vk::VkPipelineVertexInputStateCreateInfo m_vertexInputState;
476 vk::VkPipelineInputAssemblyStateCreateInfo m_inputAssemblyState;
477 std::vector<vk::VkPipelineColorBlendAttachmentState> m_colorBlendStateAttachments;
478 vk::VkPipelineColorBlendStateCreateInfo m_colorBlendState;
479 vk::VkPipelineViewportStateCreateInfo m_viewportState;
480 vk::VkPipelineDepthStencilStateCreateInfo m_dynamicDepthStencilState;
481 vk::VkPipelineTessellationStateCreateInfo m_tessState;
482 vk::VkPipelineRasterizationStateCreateInfo m_rasterState;
483 vk::VkPipelineMultisampleStateCreateInfo m_multisampleState;
484 vk::VkPipelineDynamicStateCreateInfo m_dynamicState;
486 std::vector<vk::VkDynamicState> m_dynamicStates;
487 std::vector<vk::VkViewport> m_viewports;
488 std::vector<vk::VkRect2D> m_scissors;
489 std::vector<vk::VkSampleMask> m_multisampleStateSampleMask;
492 class SamplerCreateInfo : public vk::VkSamplerCreateInfo
495 SamplerCreateInfo (vk::VkFilter magFilter = vk::VK_FILTER_NEAREST,
496 vk::VkFilter minFilter = vk::VK_FILTER_NEAREST,
497 vk::VkSamplerMipmapMode mipmapMode = vk::VK_SAMPLER_MIPMAP_MODE_NEAREST,
498 vk::VkSamplerAddressMode addressU = vk::VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT,
499 vk::VkSamplerAddressMode addressV = vk::VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT,
500 vk::VkSamplerAddressMode addressW = vk::VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT,
502 vk::VkBool32 anisotropyEnable = VK_FALSE,
504 vk::VkBool32 compareEnable = false,
505 vk::VkCompareOp compareOp = vk::VK_COMPARE_OP_ALWAYS,
508 vk::VkBorderColor borderColor = vk::VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE,
509 vk::VkBool32 unnormalizedCoordinates = false);