vk/0.132: Rename bool32_t -> VkBool32

sed -i 's/bool32_t/VkBool32/g' \
  $(git ls-files src/vulkan include/vulkan)
This commit is contained in:
Chad Versace 2015-07-13 12:59:42 -07:00
parent 77dcfe3c70
commit 8f3b2187e1
5 changed files with 62 additions and 62 deletions

View File

@ -68,7 +68,7 @@ extern "C"
#endif // !defined(VK_NO_STDINT_H) #endif // !defined(VK_NO_STDINT_H)
typedef uint64_t VkDeviceSize; typedef uint64_t VkDeviceSize;
typedef uint32_t bool32_t; typedef uint32_t VkBool32;
typedef uint32_t VkSampleMask; typedef uint32_t VkSampleMask;
typedef uint32_t VkFlags; typedef uint32_t VkFlags;

View File

@ -158,7 +158,7 @@ typedef struct VkSwapChainImageInfoWSI_
typedef struct VkPhysicalDeviceQueuePresentPropertiesWSI_ typedef struct VkPhysicalDeviceQueuePresentPropertiesWSI_
{ {
bool32_t supportsPresent; // Tells whether the queue supports presenting VkBool32 supportsPresent; // Tells whether the queue supports presenting
} VkPhysicalDeviceQueuePresentPropertiesWSI; } VkPhysicalDeviceQueuePresentPropertiesWSI;
typedef struct VkPresentInfoWSI_ typedef struct VkPresentInfoWSI_

View File

@ -1125,47 +1125,47 @@ typedef struct {
} VkInstanceCreateInfo; } VkInstanceCreateInfo;
typedef struct { typedef struct {
bool32_t robustBufferAccess; VkBool32 robustBufferAccess;
bool32_t fullDrawIndexUint32; VkBool32 fullDrawIndexUint32;
bool32_t imageCubeArray; VkBool32 imageCubeArray;
bool32_t independentBlend; VkBool32 independentBlend;
bool32_t geometryShader; VkBool32 geometryShader;
bool32_t tessellationShader; VkBool32 tessellationShader;
bool32_t sampleRateShading; VkBool32 sampleRateShading;
bool32_t dualSourceBlend; VkBool32 dualSourceBlend;
bool32_t logicOp; VkBool32 logicOp;
bool32_t instancedDrawIndirect; VkBool32 instancedDrawIndirect;
bool32_t depthClip; VkBool32 depthClip;
bool32_t depthBiasClamp; VkBool32 depthBiasClamp;
bool32_t fillModeNonSolid; VkBool32 fillModeNonSolid;
bool32_t depthBounds; VkBool32 depthBounds;
bool32_t wideLines; VkBool32 wideLines;
bool32_t largePoints; VkBool32 largePoints;
bool32_t textureCompressionETC2; VkBool32 textureCompressionETC2;
bool32_t textureCompressionASTC_LDR; VkBool32 textureCompressionASTC_LDR;
bool32_t textureCompressionBC; VkBool32 textureCompressionBC;
bool32_t pipelineStatisticsQuery; VkBool32 pipelineStatisticsQuery;
bool32_t vertexSideEffects; VkBool32 vertexSideEffects;
bool32_t tessellationSideEffects; VkBool32 tessellationSideEffects;
bool32_t geometrySideEffects; VkBool32 geometrySideEffects;
bool32_t fragmentSideEffects; VkBool32 fragmentSideEffects;
bool32_t shaderTessellationPointSize; VkBool32 shaderTessellationPointSize;
bool32_t shaderGeometryPointSize; VkBool32 shaderGeometryPointSize;
bool32_t shaderTextureGatherExtended; VkBool32 shaderTextureGatherExtended;
bool32_t shaderStorageImageExtendedFormats; VkBool32 shaderStorageImageExtendedFormats;
bool32_t shaderStorageImageMultisample; VkBool32 shaderStorageImageMultisample;
bool32_t shaderStorageBufferArrayConstantIndexing; VkBool32 shaderStorageBufferArrayConstantIndexing;
bool32_t shaderStorageImageArrayConstantIndexing; VkBool32 shaderStorageImageArrayConstantIndexing;
bool32_t shaderUniformBufferArrayDynamicIndexing; VkBool32 shaderUniformBufferArrayDynamicIndexing;
bool32_t shaderSampledImageArrayDynamicIndexing; VkBool32 shaderSampledImageArrayDynamicIndexing;
bool32_t shaderStorageBufferArrayDynamicIndexing; VkBool32 shaderStorageBufferArrayDynamicIndexing;
bool32_t shaderStorageImageArrayDynamicIndexing; VkBool32 shaderStorageImageArrayDynamicIndexing;
bool32_t shaderClipDistance; VkBool32 shaderClipDistance;
bool32_t shaderCullDistance; VkBool32 shaderCullDistance;
bool32_t shaderFloat64; VkBool32 shaderFloat64;
bool32_t shaderInt64; VkBool32 shaderInt64;
bool32_t shaderFloat16; VkBool32 shaderFloat16;
bool32_t shaderInt16; VkBool32 shaderInt16;
} VkPhysicalDeviceFeatures; } VkPhysicalDeviceFeatures;
typedef struct { typedef struct {
@ -1226,7 +1226,7 @@ typedef struct {
uint32_t mipmapPrecisionBits; uint32_t mipmapPrecisionBits;
uint32_t maxDrawIndexedIndexValue; uint32_t maxDrawIndexedIndexValue;
uint32_t maxDrawIndirectInstanceCount; uint32_t maxDrawIndirectInstanceCount;
bool32_t primitiveRestartForPatches; VkBool32 primitiveRestartForPatches;
float maxSamplerLodBias; float maxSamplerLodBias;
uint32_t maxSamplerAnisotropy; uint32_t maxSamplerAnisotropy;
uint32_t maxViewports; uint32_t maxViewports;
@ -1280,7 +1280,7 @@ typedef struct {
typedef struct { typedef struct {
VkQueueFlags queueFlags; VkQueueFlags queueFlags;
uint32_t queueCount; uint32_t queueCount;
bool32_t supportsTimestamps; VkBool32 supportsTimestamps;
} VkPhysicalDeviceQueueProperties; } VkPhysicalDeviceQueueProperties;
typedef struct { typedef struct {
@ -1549,7 +1549,7 @@ typedef struct {
VkStructureType sType; VkStructureType sType;
const void* pNext; const void* pNext;
VkPrimitiveTopology topology; VkPrimitiveTopology topology;
bool32_t primitiveRestartEnable; VkBool32 primitiveRestartEnable;
} VkPipelineIaStateCreateInfo; } VkPipelineIaStateCreateInfo;
typedef struct { typedef struct {
@ -1567,8 +1567,8 @@ typedef struct {
typedef struct { typedef struct {
VkStructureType sType; VkStructureType sType;
const void* pNext; const void* pNext;
bool32_t depthClipEnable; VkBool32 depthClipEnable;
bool32_t rasterizerDiscardEnable; VkBool32 rasterizerDiscardEnable;
VkFillMode fillMode; VkFillMode fillMode;
VkCullMode cullMode; VkCullMode cullMode;
VkFrontFace frontFace; VkFrontFace frontFace;
@ -1578,7 +1578,7 @@ typedef struct {
VkStructureType sType; VkStructureType sType;
const void* pNext; const void* pNext;
uint32_t rasterSamples; uint32_t rasterSamples;
bool32_t sampleShadingEnable; VkBool32 sampleShadingEnable;
float minSampleShading; float minSampleShading;
VkSampleMask sampleMask; VkSampleMask sampleMask;
} VkPipelineMsStateCreateInfo; } VkPipelineMsStateCreateInfo;
@ -1594,17 +1594,17 @@ typedef struct {
VkStructureType sType; VkStructureType sType;
const void* pNext; const void* pNext;
VkFormat format; VkFormat format;
bool32_t depthTestEnable; VkBool32 depthTestEnable;
bool32_t depthWriteEnable; VkBool32 depthWriteEnable;
VkCompareOp depthCompareOp; VkCompareOp depthCompareOp;
bool32_t depthBoundsEnable; VkBool32 depthBoundsEnable;
bool32_t stencilTestEnable; VkBool32 stencilTestEnable;
VkStencilOpState front; VkStencilOpState front;
VkStencilOpState back; VkStencilOpState back;
} VkPipelineDsStateCreateInfo; } VkPipelineDsStateCreateInfo;
typedef struct { typedef struct {
bool32_t blendEnable; VkBool32 blendEnable;
VkFormat format; VkFormat format;
VkBlend srcBlendColor; VkBlend srcBlendColor;
VkBlend destBlendColor; VkBlend destBlendColor;
@ -1618,8 +1618,8 @@ typedef struct {
typedef struct { typedef struct {
VkStructureType sType; VkStructureType sType;
const void* pNext; const void* pNext;
bool32_t alphaToCoverageEnable; VkBool32 alphaToCoverageEnable;
bool32_t logicOpEnable; VkBool32 logicOpEnable;
VkLogicOp logicOp; VkLogicOp logicOp;
uint32_t attachmentCount; uint32_t attachmentCount;
const VkPipelineCbAttachmentState* pAttachments; const VkPipelineCbAttachmentState* pAttachments;
@ -1680,7 +1680,7 @@ typedef struct {
VkTexAddress addressW; VkTexAddress addressW;
float mipLodBias; float mipLodBias;
uint32_t maxAnisotropy; uint32_t maxAnisotropy;
bool32_t compareEnable; VkBool32 compareEnable;
VkCompareOp compareOp; VkCompareOp compareOp;
float minLod; float minLod;
float maxLod; float maxLod;
@ -2013,7 +2013,7 @@ typedef VkResult (VKAPI *PFN_vkQueueBindSparseImageMemory)(VkQueue queue, VkImag
typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence);
typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences);
typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence);
typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout); typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout);
typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore);
typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore); typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore);
typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore); typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore);
@ -2275,7 +2275,7 @@ VkResult VKAPI vkWaitForFences(
VkDevice device, VkDevice device,
uint32_t fenceCount, uint32_t fenceCount,
const VkFence* pFences, const VkFence* pFences,
bool32_t waitAll, VkBool32 waitAll,
uint64_t timeout); uint64_t timeout);
VkResult VKAPI vkCreateSemaphore( VkResult VKAPI vkCreateSemaphore(

View File

@ -1461,7 +1461,7 @@ VkResult anv_WaitForFences(
VkDevice _device, VkDevice _device,
uint32_t fenceCount, uint32_t fenceCount,
const VkFence* pFences, const VkFence* pFences,
bool32_t waitAll, VkBool32 waitAll,
uint64_t timeout) uint64_t timeout)
{ {
ANV_FROM_HANDLE(anv_device, device, _device); ANV_FROM_HANDLE(anv_device, device, _device);

View File

@ -256,7 +256,7 @@ emit_rs_state(struct anv_pipeline *pipeline,
.PointWidth = 1.0, .PointWidth = 1.0,
}; };
/* FINISHME: bool32_t rasterizerDiscardEnable; */ /* FINISHME: VkBool32 rasterizerDiscardEnable; */
GEN8_3DSTATE_SF_pack(NULL, pipeline->state_sf, &sf); GEN8_3DSTATE_SF_pack(NULL, pipeline->state_sf, &sf);
@ -412,7 +412,7 @@ emit_ds_state(struct anv_pipeline *pipeline,
return; return;
} }
/* bool32_t depthBoundsEnable; // optional (depth_bounds_test) */ /* VkBool32 depthBoundsEnable; // optional (depth_bounds_test) */
struct GEN8_3DSTATE_WM_DEPTH_STENCIL wm_depth_stencil = { struct GEN8_3DSTATE_WM_DEPTH_STENCIL wm_depth_stencil = {
.DepthTestEnable = info->depthTestEnable, .DepthTestEnable = info->depthTestEnable,