Indicate texel buffer support in Vulkan
Bug: skia: Change-Id: I116dd2b15320e3a61afba82b003b13a14ce6122f Reviewed-on: https://skia-review.googlesource.com/21402 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
parent
cb72722cb9
commit
2dd222639d
@ -227,6 +227,6 @@ bool GrVkBuffer::vkUpdateData(GrVkGpu* gpu, const void* src, size_t srcSizeInByt
|
||||
|
||||
void GrVkBuffer::validate() const {
|
||||
SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.fType
|
||||
|| kCopyRead_Type == fDesc.fType || kCopyWrite_Type == fDesc.fType
|
||||
|| kUniform_Type == fDesc.fType);
|
||||
|| kTexel_Type == fDesc.fType || kCopyRead_Type == fDesc.fType
|
||||
|| kCopyWrite_Type == fDesc.fType || kUniform_Type == fDesc.fType);
|
||||
}
|
||||
|
@ -248,6 +248,8 @@ void GrVkCaps::initShaderCaps(const VkPhysicalDeviceProperties& properties, uint
|
||||
}
|
||||
|
||||
shaderCaps->fIntegerSupport = true;
|
||||
shaderCaps->fTexelBufferSupport = true;
|
||||
shaderCaps->fTexelFetchSupport = true;
|
||||
shaderCaps->fVertexIDSupport = true;
|
||||
|
||||
// Assume the minimum precisions mandated by the SPIR-V spec.
|
||||
|
Loading…
Reference in New Issue
Block a user