Home
last modified time | relevance | path

Searched refs:ResourceType (Results 1 – 25 of 72) sorted by relevance

123

/third_party/skia/third_party/externals/angle2/src/libANGLE/
DResourceMap.h19 template <typename ResourceType, typename IDType>
26 ANGLE_INLINE ResourceType *query(IDType id) const in query()
31 ResourceType *value = mFlatResources[handle]; in query()
42 bool erase(IDType id, ResourceType **resourceOut);
44 void assign(IDType id, ResourceType *resource);
49 using IndexAndResource = std::pair<GLuint, ResourceType *>;
50 using HashMap = angle::HashMap<GLuint, ResourceType *>;
93 static ResourceType *InvalidPointer();
103 static constexpr size_t kElementSize = sizeof(ResourceType *);
106 ResourceType **mFlatResources;
[all …]
DResourceManager.h65 template <typename ResourceType, typename ImplT, typename IDType>
78 typename ResourceMap<ResourceType, IDType>::Iterator begin() const in begin()
82 typename ResourceMap<ResourceType, IDType>::Iterator end() const { return mObjectMap.end(); } in end()
89 ANGLE_INLINE ResourceType *checkObjectAllocation(rx::GLImplFactory *factory, in checkObjectAllocation()
93 ResourceType *value = mObjectMap.query(handle); in checkObjectAllocation()
109 ResourceMap<ResourceType, IDType> mObjectMap;
113 ResourceType *checkObjectAllocationImpl(rx::GLImplFactory *factory, in checkObjectAllocationImpl()
117 ResourceType *object = ImplT::AllocateNewObject(factory, handle, args...); in checkObjectAllocationImpl()
DResourceManager.cpp32 template <typename ResourceType, typename IDType>
34 ResourceMap<ResourceType, IDType> *objectMap) in AllocateEmptyObject() argument
61 template <typename ResourceType, typename ImplT, typename IDType>
62 TypedResourceManager<ResourceType, ImplT, IDType>::~TypedResourceManager() in ~TypedResourceManager()
67 template <typename ResourceType, typename ImplT, typename IDType>
68 void TypedResourceManager<ResourceType, ImplT, IDType>::reset(const Context *context) in reset()
81 template <typename ResourceType, typename ImplT, typename IDType>
82 void TypedResourceManager<ResourceType, ImplT, IDType>::deleteObject(const Context *context, in deleteObject()
85 ResourceType *resource = nullptr; in deleteObject()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DResourceMap.h19 template <typename ResourceType, typename IDType = GLuint>
26 ANGLE_INLINE ResourceType *query(IDType id) const in query()
31 ResourceType *value = mFlatResources[handle]; in query()
42 bool erase(IDType id, ResourceType **resourceOut);
44 void assign(IDType id, ResourceType *resource);
49 using IndexAndResource = std::pair<GLuint, ResourceType *>;
50 using HashMap = std::unordered_map<GLuint, ResourceType *>;
88 static ResourceType *InvalidPointer();
98 static constexpr size_t kElementSize = sizeof(ResourceType *);
101 ResourceType **mFlatResources;
[all …]
DResourceManager.cpp32 template <typename ResourceType, typename IDType>
34 ResourceMap<ResourceType, IDType> *objectMap) in AllocateEmptyObject() argument
63 template <typename ResourceType, typename HandleAllocatorType, typename ImplT, typename IDType>
64 TypedResourceManager<ResourceType, HandleAllocatorType, ImplT, IDType>::~TypedResourceManager() in ~TypedResourceManager()
69 template <typename ResourceType, typename HandleAllocatorType, typename ImplT, typename IDType>
70 void TypedResourceManager<ResourceType, HandleAllocatorType, ImplT, IDType>::reset( in reset()
84 template <typename ResourceType, typename HandleAllocatorType, typename ImplT, typename IDType>
85 void TypedResourceManager<ResourceType, HandleAllocatorType, ImplT, IDType>::deleteObject( in deleteObject()
89 ResourceType *resource = nullptr; in deleteObject()
DResourceManager.h62 template <typename ResourceType,
83 ANGLE_INLINE ResourceType *checkObjectAllocation(rx::GLImplFactory *factory, in checkObjectAllocation()
87 ResourceType *value = mObjectMap.query(handle); in checkObjectAllocation()
103 ResourceMap<ResourceType, IDType> mObjectMap;
107 ResourceType *checkObjectAllocationImpl(rx::GLImplFactory *factory, in checkObjectAllocationImpl()
111 ResourceType *object = ImplT::AllocateNewObject(factory, handle, args...); in checkObjectAllocationImpl()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
DvktMeshShaderSyncTests.cpp115 enum class ResourceType enum
123 VkDescriptorType resourceTypeToDescriptor (ResourceType resType) in resourceTypeToDescriptor()
127 case ResourceType::UNIFORM_BUFFER: return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; in resourceTypeToDescriptor()
128 case ResourceType::STORAGE_BUFFER: return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER; in resourceTypeToDescriptor()
129 case ResourceType::STORAGE_IMAGE: return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; in resourceTypeToDescriptor()
130 case ResourceType::SAMPLED_IMAGE: return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; in resourceTypeToDescriptor()
229 bool canReadResourceAsAccess (ResourceType resType, ReadAccess access) in canReadResourceAsAccess()
232 return (resType == ResourceType::UNIFORM_BUFFER); in canReadResourceAsAccess()
237 bool canWriteResourceAsAccess (ResourceType resType, WriteAccess access) in canWriteResourceAsAccess()
239 if (resType == ResourceType::UNIFORM_BUFFER) in canWriteResourceAsAccess()
[all …]
DvktMeshShaderSyncTestsEXT.cpp116 enum class ResourceType enum
124 VkDescriptorType resourceTypeToDescriptor (ResourceType resType) in resourceTypeToDescriptor()
128 case ResourceType::UNIFORM_BUFFER: return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; in resourceTypeToDescriptor()
129 case ResourceType::STORAGE_BUFFER: return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER; in resourceTypeToDescriptor()
130 case ResourceType::STORAGE_IMAGE: return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; in resourceTypeToDescriptor()
131 case ResourceType::SAMPLED_IMAGE: return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; in resourceTypeToDescriptor()
231 bool canReadResourceAsAccess (ResourceType resType, ReadAccess access) in canReadResourceAsAccess()
234 return (resType == ResourceType::UNIFORM_BUFFER); in canReadResourceAsAccess()
239 bool canWriteResourceAsAccess (ResourceType resType, WriteAccess access) in canWriteResourceAsAccess()
241 if (resType == ResourceType::UNIFORM_BUFFER) in canWriteResourceAsAccess()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderSyncTests.cpp115 enum class ResourceType enum
123 VkDescriptorType resourceTypeToDescriptor (ResourceType resType) in resourceTypeToDescriptor()
127 case ResourceType::UNIFORM_BUFFER: return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; in resourceTypeToDescriptor()
128 case ResourceType::STORAGE_BUFFER: return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER; in resourceTypeToDescriptor()
129 case ResourceType::STORAGE_IMAGE: return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; in resourceTypeToDescriptor()
130 case ResourceType::SAMPLED_IMAGE: return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; in resourceTypeToDescriptor()
229 bool canReadResourceAsAccess (ResourceType resType, ReadAccess access) in canReadResourceAsAccess()
232 return (resType == ResourceType::UNIFORM_BUFFER); in canReadResourceAsAccess()
237 bool canWriteResourceAsAccess (ResourceType resType, WriteAccess access) in canWriteResourceAsAccess()
239 if (resType == ResourceType::UNIFORM_BUFFER) in canWriteResourceAsAccess()
[all …]
DvktMeshShaderSyncTestsEXT.cpp116 enum class ResourceType enum
124 VkDescriptorType resourceTypeToDescriptor (ResourceType resType) in resourceTypeToDescriptor()
128 case ResourceType::UNIFORM_BUFFER: return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; in resourceTypeToDescriptor()
129 case ResourceType::STORAGE_BUFFER: return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER; in resourceTypeToDescriptor()
130 case ResourceType::STORAGE_IMAGE: return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; in resourceTypeToDescriptor()
131 case ResourceType::SAMPLED_IMAGE: return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; in resourceTypeToDescriptor()
231 bool canReadResourceAsAccess (ResourceType resType, ReadAccess access) in canReadResourceAsAccess()
234 return (resType == ResourceType::UNIFORM_BUFFER); in canReadResourceAsAccess()
239 bool canWriteResourceAsAccess (ResourceType resType, WriteAccess access) in canWriteResourceAsAccess()
241 if (resType == ResourceType::UNIFORM_BUFFER) in canWriteResourceAsAccess()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.h81 enum class ResourceType enum
88 constexpr size_t ResourceTypeIndex(ResourceType resourceType) in ResourceTypeIndex()
93 constexpr size_t NumResourceTypes = ResourceTypeIndex(ResourceType::Last);
98 struct NAME<ResourceType::RESTYPE> \
106 struct NAME<ResourceType::RESTYPE> \
114 struct NAME<ResourceType::RESTYPE> \
120 template <ResourceType Param> \
124 template <ResourceType Param> \
128 template <ResourceType Param> \
150 constexpr ResourceType Get##NAME() \
[all …]
DResourceManager11.cpp79 template <ResourceType ResourceT>
88 uint64_t ComputeGenericMemoryUsage(ResourceType resourceType, ID3D11DeviceChild *resource) in ComputeGenericMemoryUsage()
92 case ResourceType::Texture2D: in ComputeGenericMemoryUsage()
93 return ComputeGenericMemoryUsage<ResourceType::Texture2D>(resource); in ComputeGenericMemoryUsage()
94 case ResourceType::Texture3D: in ComputeGenericMemoryUsage()
95 return ComputeGenericMemoryUsage<ResourceType::Texture3D>(resource); in ComputeGenericMemoryUsage()
96 case ResourceType::Buffer: in ComputeGenericMemoryUsage()
97 return ComputeGenericMemoryUsage<ResourceType::Buffer>(resource); in ComputeGenericMemoryUsage()
417 void ResourceManager11::incrResource(ResourceType resourceType, uint64_t memorySize) in incrResource()
429 void ResourceManager11::decrResource(ResourceType resourceType, uint64_t memorySize) in decrResource()
[all …]
Drenderer11_utils.h222 template <ResourceType ResourceT>
277 class LazyInputLayout final : public LazyResource<ResourceType::InputLayout>
295 class LazyBlendState final : public LazyResource<ResourceType::BlendState>
367 ResourceType resourceType = ResourceType::Last;
383 bool is2D() const { return mData->resourceType == ResourceType::Texture2D; } in is2D()
384 bool is3D() const { return mData->resourceType == ResourceType::Texture3D; } in is3D()
385 ResourceType getTextureType() const { return mData->resourceType; } in getTextureType()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.h77 enum class ResourceType enum
84 constexpr size_t ResourceTypeIndex(ResourceType resourceType) in ResourceTypeIndex()
89 constexpr size_t NumResourceTypes = ResourceTypeIndex(ResourceType::Last);
94 struct NAME<ResourceType::RESTYPE> \
102 struct NAME<ResourceType::RESTYPE> \
110 struct NAME<ResourceType::RESTYPE> \
116 template <ResourceType Param> \
120 template <ResourceType Param> \
124 template <ResourceType Param> \
146 constexpr ResourceType Get##NAME() \
[all …]
DResourceManager11.cpp79 template <ResourceType ResourceT>
88 uint64_t ComputeGenericMemoryUsage(ResourceType resourceType, ID3D11DeviceChild *resource) in ComputeGenericMemoryUsage()
92 case ResourceType::Texture2D: in ComputeGenericMemoryUsage()
93 return ComputeGenericMemoryUsage<ResourceType::Texture2D>(resource); in ComputeGenericMemoryUsage()
94 case ResourceType::Texture3D: in ComputeGenericMemoryUsage()
95 return ComputeGenericMemoryUsage<ResourceType::Texture3D>(resource); in ComputeGenericMemoryUsage()
96 case ResourceType::Buffer: in ComputeGenericMemoryUsage()
97 return ComputeGenericMemoryUsage<ResourceType::Buffer>(resource); in ComputeGenericMemoryUsage()
417 void ResourceManager11::incrResource(ResourceType resourceType, uint64_t memorySize) in incrResource()
429 void ResourceManager11::decrResource(ResourceType resourceType, uint64_t memorySize) in decrResource()
[all …]
Drenderer11_utils.h223 template <ResourceType ResourceT>
278 class LazyInputLayout final : public LazyResource<ResourceType::InputLayout>
296 class LazyBlendState final : public LazyResource<ResourceType::BlendState>
368 ResourceType resourceType = ResourceType::Last;
384 bool is2D() const { return mData->resourceType == ResourceType::Texture2D; } in is2D()
385 bool is3D() const { return mData->resourceType == ResourceType::Texture3D; } in is3D()
386 ResourceType getTextureType() const { return mData->resourceType; } in getTextureType()
/third_party/nghttp2/src/
DHtmlParser.h41 enum ResourceType { enum
51 std::vector<std::pair<std::string, ResourceType>> links;
64 const std::vector<std::pair<std::string, ResourceType>> &get_links() const;
81 const std::vector<std::pair<std::string, ResourceType>> &get_links() const { in get_links()
87 std::vector<std::pair<std::string, ResourceType>> links_;
DHtmlParser.cc59 ResourceType
75 ResourceType res_type) { in add_link()
210 const std::vector<std::pair<std::string, ResourceType>> &
/third_party/skia/third_party/externals/tint/samples/
Dmain.cc336 tint::inspector::ResourceBinding::ResourceType type) { in ResourceTypeToString()
338 case tint::inspector::ResourceBinding::ResourceType::kUniformBuffer: in ResourceTypeToString()
340 case tint::inspector::ResourceBinding::ResourceType::kStorageBuffer: in ResourceTypeToString()
342 case tint::inspector::ResourceBinding::ResourceType::kReadOnlyStorageBuffer: in ResourceTypeToString()
344 case tint::inspector::ResourceBinding::ResourceType::kSampler: in ResourceTypeToString()
346 case tint::inspector::ResourceBinding::ResourceType::kComparisonSampler: in ResourceTypeToString()
348 case tint::inspector::ResourceBinding::ResourceType::kSampledTexture: in ResourceTypeToString()
350 case tint::inspector::ResourceBinding::ResourceType::kMultisampledTexture: in ResourceTypeToString()
352 case tint::inspector::ResourceBinding::ResourceType:: in ResourceTypeToString()
355 case tint::inspector::ResourceBinding::ResourceType::kDepthTexture: in ResourceTypeToString()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DShaderModule.cpp133 tint::inspector::ResourceBinding::ResourceType type) { in TintResourceTypeToBindingInfoType()
135 case tint::inspector::ResourceBinding::ResourceType::kUniformBuffer: in TintResourceTypeToBindingInfoType()
136 case tint::inspector::ResourceBinding::ResourceType::kStorageBuffer: in TintResourceTypeToBindingInfoType()
137 case tint::inspector::ResourceBinding::ResourceType::kReadOnlyStorageBuffer: in TintResourceTypeToBindingInfoType()
139 case tint::inspector::ResourceBinding::ResourceType::kSampler: in TintResourceTypeToBindingInfoType()
140 case tint::inspector::ResourceBinding::ResourceType::kComparisonSampler: in TintResourceTypeToBindingInfoType()
142 case tint::inspector::ResourceBinding::ResourceType::kSampledTexture: in TintResourceTypeToBindingInfoType()
143 case tint::inspector::ResourceBinding::ResourceType::kMultisampledTexture: in TintResourceTypeToBindingInfoType()
144 case tint::inspector::ResourceBinding::ResourceType::kDepthTexture: in TintResourceTypeToBindingInfoType()
145 case tint::inspector::ResourceBinding::ResourceType::kDepthMultisampledTexture: in TintResourceTypeToBindingInfoType()
[all …]
/third_party/skia/third_party/externals/tint/src/inspector/
Dinspector_test.cc1312 EXPECT_EQ(ResourceBinding::ResourceType::kUniformBuffer, in TEST_F()
1317 EXPECT_EQ(ResourceBinding::ResourceType::kStorageBuffer, in TEST_F()
1322 EXPECT_EQ(ResourceBinding::ResourceType::kReadOnlyStorageBuffer, in TEST_F()
1327 EXPECT_EQ(ResourceBinding::ResourceType::kSampler, result[3].resource_type); in TEST_F()
1331 EXPECT_EQ(ResourceBinding::ResourceType::kComparisonSampler, in TEST_F()
1336 EXPECT_EQ(ResourceBinding::ResourceType::kSampledTexture, in TEST_F()
1341 EXPECT_EQ(ResourceBinding::ResourceType::kWriteOnlyStorageTexture, in TEST_F()
1346 EXPECT_EQ(ResourceBinding::ResourceType::kDepthTexture, in TEST_F()
1351 EXPECT_EQ(ResourceBinding::ResourceType::kDepthMultisampledTexture, in TEST_F()
1401 EXPECT_EQ(ResourceBinding::ResourceType::kUniformBuffer, in TEST_F()
[all …]
Dinspector.cc390 entry.resource_type = ResourceBinding::ResourceType::kUniformBuffer; in GetUniformBufferResourceBindings()
427 entry.resource_type = ResourceBinding::ResourceType::kSampler; in GetSamplerResourceBindings()
452 entry.resource_type = ResourceBinding::ResourceType::kComparisonSampler; in GetComparisonSamplerResourceBindings()
481 ResourceBinding::ResourceType resource_type) { in GetTextureResourceBindings()
513 ResourceBinding::ResourceType::kDepthTexture); in GetDepthTextureResourceBindings()
521 ResourceBinding::ResourceType::kDepthMultisampledTexture); in GetDepthMultisampledTextureResourceBindings()
528 ResourceBinding::ResourceType::kExternalTexture); in GetExternalTextureResourceBindings()
681 read_only ? ResourceBinding::ResourceType::kReadOnlyStorageBuffer in GetStorageBufferResourceBindingsImpl()
682 : ResourceBinding::ResourceType::kStorageBuffer; in GetStorageBufferResourceBindingsImpl()
714 multisampled_only ? ResourceBinding::ResourceType::kMultisampledTexture in GetSampledTextureResourceBindingsImpl()
[all …]
Dresource_binding.h91 enum class ResourceType { enum
106 ResourceType resource_type;
/third_party/flutter/skia/include/private/
DGrResourceKey.h192 typedef uint32_t ResourceType; typedef
195 static ResourceType GenerateResourceType();
207 ResourceType resourceType() const { return this->domain(); } in resourceType()
219 Builder(GrScratchKey* key, ResourceType type, int data32Count) in Builder()
/third_party/skia/include/private/
DGrResourceKey.h193 typedef uint32_t ResourceType; typedef
196 static ResourceType GenerateResourceType();
208 ResourceType resourceType() const { return this->domain(); } in resourceType()
220 Builder(GrScratchKey* key, ResourceType type, int data32Count) in Builder()

123