Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 1748) sorted by relevance

12345678910>>...70

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DTextureViewValidationTests.cpp34 wgpu::TextureDescriptor descriptor; in Create2DArrayTexture() local
35 descriptor.dimension = wgpu::TextureDimension::e2D; in Create2DArrayTexture()
36 descriptor.size.width = width; in Create2DArrayTexture()
37 descriptor.size.height = height; in Create2DArrayTexture()
38 descriptor.size.depthOrArrayLayers = arrayLayerCount; in Create2DArrayTexture()
39 descriptor.sampleCount = sampleCount; in Create2DArrayTexture()
40 descriptor.format = kDefaultTextureFormat; in Create2DArrayTexture()
41 descriptor.mipLevelCount = mipLevelCount; in Create2DArrayTexture()
42 descriptor.usage = wgpu::TextureUsage::TextureBinding; in Create2DArrayTexture()
43 return device.CreateTexture(&descriptor); in Create2DArrayTexture()
[all …]
DTextureValidationTests.cpp45 wgpu::TextureDescriptor descriptor; in CreateDefaultTextureDescriptor() local
46 descriptor.size.width = kWidth; in CreateDefaultTextureDescriptor()
47 descriptor.size.height = kHeight; in CreateDefaultTextureDescriptor()
48 descriptor.size.depthOrArrayLayers = kDefaultDepth; in CreateDefaultTextureDescriptor()
49 descriptor.mipLevelCount = kDefaultMipLevels; in CreateDefaultTextureDescriptor()
50 descriptor.sampleCount = kDefaultSampleCount; in CreateDefaultTextureDescriptor()
51 descriptor.dimension = wgpu::TextureDimension::e2D; in CreateDefaultTextureDescriptor()
52 descriptor.format = kDefaultTextureFormat; in CreateDefaultTextureDescriptor()
53 descriptor.usage = in CreateDefaultTextureDescriptor()
55 return descriptor; in CreateDefaultTextureDescriptor()
[all …]
DRenderPipelineValidationTests.cpp62 utils::ComboRenderPipelineDescriptor descriptor; in TEST_F() local
63 descriptor.vertex.module = vsModule; in TEST_F()
64 descriptor.cFragment.module = fsModule; in TEST_F()
66 device.CreateRenderPipeline(&descriptor); in TEST_F()
74 utils::ComboRenderPipelineDescriptor descriptor; in TEST_F() local
75 descriptor.vertex.module = vsModule; in TEST_F()
76 descriptor.cFragment.module = fsModule; in TEST_F()
77 descriptor.EnableDepthStencil(); in TEST_F()
78 device.CreateRenderPipeline(&descriptor); in TEST_F()
83 utils::ComboRenderPipelineDescriptor descriptor; in TEST_F() local
[all …]
DLabelTests.cpp28 wgpu::BindGroupDescriptor descriptor; in TEST_F() local
29 descriptor.layout = layout; in TEST_F()
30 descriptor.entryCount = 0; in TEST_F()
31 descriptor.entries = nullptr; in TEST_F()
35 wgpu::BindGroup bindGroup = device.CreateBindGroup(&descriptor); in TEST_F()
42 wgpu::BindGroup bindGroup = device.CreateBindGroup(&descriptor); in TEST_F()
50 descriptor.label = label.c_str(); in TEST_F()
51 wgpu::BindGroup bindGroup = device.CreateBindGroup(&descriptor); in TEST_F()
61 wgpu::BindGroupLayoutDescriptor descriptor = {}; in TEST_F() local
62 descriptor.entryCount = 0; in TEST_F()
[all …]
DUnsafeAPIValidationTests.cpp25 dawn_native::DawnDeviceDescriptor descriptor; in CreateTestDevice() local
26 descriptor.forceEnabledToggles.push_back("disallow_unsafe_apis"); in CreateTestDevice()
27 return adapter.CreateDevice(&descriptor); in CreateTestDevice()
74 dawn_native::DawnDeviceDescriptor descriptor; in CreateTestDevice() local
75 descriptor.requiredFeatures.push_back("pipeline-statistics-query"); in CreateTestDevice()
76 descriptor.requiredFeatures.push_back("timestamp-query"); in CreateTestDevice()
77 descriptor.forceEnabledToggles.push_back("disallow_unsafe_apis"); in CreateTestDevice()
78 return adapter.CreateDevice(&descriptor); in CreateTestDevice()
84 wgpu::QuerySetDescriptor descriptor; in TEST_F() local
85 descriptor.count = 1; in TEST_F()
[all …]
/third_party/protobuf/objectivec/Tests/
DGPBDescriptorTests.m46 GPBDescriptor *testAllTypesDesc = [TestAllTypes descriptor];
47 GPBDescriptor *nestedMessageDesc = [TestAllTypes_NestedMessage descriptor];
54 GPBDescriptor *testAllTypesDesc = [TestAllTypes descriptor];
56 GPBDescriptor *nestedMessageDesc = [TestAllTypes_NestedMessage descriptor];
60 GPBDescriptor *descDesc = [GPBDescriptorProto descriptor];
62 GPBDescriptor *descExtRngDesc = [GPBDescriptorProto_ExtensionRange descriptor];
66 GPBDescriptor *pointDesc = [Point_Class descriptor];
68 GPBDescriptor *pointRectDesc = [Point_Rect descriptor];
73 GPBDescriptor *descriptor = [TestAllTypes descriptor];
77 [descriptor fieldWithName:@"optionalNestedEnum"];
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DSampler.cpp25 MaybeError ValidateSamplerDescriptor(DeviceBase*, const SamplerDescriptor* descriptor) { in ValidateSamplerDescriptor() argument
26 DAWN_INVALID_IF(descriptor->nextInChain != nullptr, "nextInChain must be nullptr"); in ValidateSamplerDescriptor()
28 DAWN_INVALID_IF(std::isnan(descriptor->lodMinClamp) || std::isnan(descriptor->lodMaxClamp), in ValidateSamplerDescriptor()
29 "LOD clamp bounds [%f, %f] contain a NaN.", descriptor->lodMinClamp, in ValidateSamplerDescriptor()
30 descriptor->lodMaxClamp); in ValidateSamplerDescriptor()
32 DAWN_INVALID_IF(descriptor->lodMinClamp < 0 || descriptor->lodMaxClamp < 0, in ValidateSamplerDescriptor()
34 descriptor->lodMinClamp, descriptor->lodMaxClamp); in ValidateSamplerDescriptor()
36 DAWN_INVALID_IF(descriptor->lodMinClamp > descriptor->lodMaxClamp, in ValidateSamplerDescriptor()
38 descriptor->lodMinClamp, descriptor->lodMaxClamp); in ValidateSamplerDescriptor()
40 if (descriptor->maxAnisotropy > 1) { in ValidateSamplerDescriptor()
[all …]
DTexture.cpp35 const TextureViewDescriptor* descriptor) { in ValidateTextureViewFormatCompatibility() argument
36 if (texture->GetFormat().format != descriptor->format) { in ValidateTextureViewFormatCompatibility()
37 if (descriptor->aspect != wgpu::TextureAspect::All && in ValidateTextureViewFormatCompatibility()
38 texture->GetFormat().GetAspectInfo(descriptor->aspect).format == in ValidateTextureViewFormatCompatibility()
39 descriptor->format) { in ValidateTextureViewFormatCompatibility()
93 MaybeError ValidateSampleCount(const TextureDescriptor* descriptor, in ValidateSampleCount() argument
96 DAWN_INVALID_IF(!IsValidSampleCount(descriptor->sampleCount), in ValidateSampleCount()
98 descriptor->sampleCount); in ValidateSampleCount()
100 if (descriptor->sampleCount > 1) { in ValidateSampleCount()
101 DAWN_INVALID_IF(descriptor->mipLevelCount > 1, in ValidateSampleCount()
[all …]
DRenderPipeline.cpp197 const VertexState* descriptor, in ValidateVertexState() argument
199 DAWN_INVALID_IF(descriptor->nextInChain != nullptr, "nextInChain must be nullptr."); in ValidateVertexState()
202 descriptor->bufferCount > kMaxVertexBuffers, in ValidateVertexState()
204 descriptor->bufferCount, kMaxVertexBuffers); in ValidateVertexState()
207 ValidateProgrammableStage(device, descriptor->module, descriptor->entryPoint, in ValidateVertexState()
208 descriptor->constantCount, descriptor->constants, layout, in ValidateVertexState()
210 "validating vertex stage (module: %s, entryPoint: %s).", descriptor->module, in ValidateVertexState()
211 descriptor->entryPoint); in ValidateVertexState()
213 descriptor->module->GetEntryPoint(descriptor->entryPoint); in ValidateVertexState()
217 for (uint32_t i = 0; i < descriptor->bufferCount; ++i) { in ValidateVertexState()
[all …]
DDevice.cpp131 const ComputePipelineDescriptor& descriptor, in ValidateLayoutAndGetComputePipelineDescriptorWithDefaults() argument
134 *outDescriptor = descriptor; in ValidateLayoutAndGetComputePipelineDescriptorWithDefaults()
154 const RenderPipelineDescriptor& descriptor, in ValidateLayoutAndGetRenderPipelineDescriptorWithDefaults() argument
157 *outDescriptor = descriptor; in ValidateLayoutAndGetRenderPipelineDescriptorWithDefaults()
159 if (descriptor.layout == nullptr) { in ValidateLayoutAndGetRenderPipelineDescriptorWithDefaults()
164 device, GetRenderStagesAndSetDummyShader(device, &descriptor))); in ValidateLayoutAndGetRenderPipelineDescriptorWithDefaults()
175 DeviceBase::DeviceBase(AdapterBase* adapter, const DawnDeviceDescriptor* descriptor) in DeviceBase() argument
177 if (descriptor != nullptr) { in DeviceBase()
178 ApplyToggleOverrides(descriptor); in DeviceBase()
179 ApplyFeatures(descriptor); in DeviceBase()
[all …]
DRenderBundleEncoder.cpp60 const RenderBundleEncoderDescriptor* descriptor) { in ValidateRenderBundleEncoderDescriptor() argument
61 DAWN_INVALID_IF(!IsValidSampleCount(descriptor->sampleCount), in ValidateRenderBundleEncoderDescriptor()
62 "Sample count (%u) is not supported.", descriptor->sampleCount); in ValidateRenderBundleEncoderDescriptor()
65 descriptor->colorFormatsCount > kMaxColorAttachments, in ValidateRenderBundleEncoderDescriptor()
67 descriptor->colorFormatsCount, kMaxColorAttachments); in ValidateRenderBundleEncoderDescriptor()
69 DAWN_INVALID_IF(descriptor->colorFormatsCount == 0 && in ValidateRenderBundleEncoderDescriptor()
70 descriptor->depthStencilFormat == wgpu::TextureFormat::Undefined, in ValidateRenderBundleEncoderDescriptor()
73 for (uint32_t i = 0; i < descriptor->colorFormatsCount; ++i) { in ValidateRenderBundleEncoderDescriptor()
74 DAWN_TRY_CONTEXT(ValidateColorAttachmentFormat(device, descriptor->colorFormats[i]), in ValidateRenderBundleEncoderDescriptor()
78 if (descriptor->depthStencilFormat != wgpu::TextureFormat::Undefined) { in ValidateRenderBundleEncoderDescriptor()
[all …]
DDevice.h59 DeviceBase(AdapterBase* adapter, const DawnDeviceDescriptor* descriptor);
143 const CommandBufferDescriptor* descriptor) = 0;
165 const BindGroupLayoutDescriptor* descriptor,
174 const PipelineLayoutDescriptor* descriptor);
179 ResultOrError<Ref<SamplerBase>> GetOrCreateSampler(const SamplerDescriptor* descriptor);
183 const ShaderModuleDescriptor* descriptor,
190 const RenderBundleEncoderDescriptor* descriptor);
191 Ref<AttachmentState> GetOrCreateAttachmentState(const RenderPipelineDescriptor* descriptor);
192 Ref<AttachmentState> GetOrCreateAttachmentState(const RenderPassDescriptor* descriptor);
196 ResultOrError<Ref<BindGroupBase>> CreateBindGroup(const BindGroupDescriptor* descriptor);
[all …]
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.h68 const FieldDescriptor* descriptor,
96 std::string UniqueFileScopeIdentifier(const Descriptor* descriptor);
118 std::string ClassName(const Descriptor* descriptor);
119 std::string ClassName(const EnumDescriptor* descriptor);
120 std::string ClassName(const ServiceDescriptor* descriptor);
121 std::string ClassName(const FileDescriptor* descriptor);
125 std::string ExtraMessageInterfaces(const Descriptor* descriptor);
129 std::string ExtraMutableMessageInterfaces(const Descriptor* descriptor);
132 std::string ExtraBuilderInterfaces(const Descriptor* descriptor);
136 std::string ExtraMessageOrBuilderInterfaces(const Descriptor* descriptor);
[all …]
Djava_name_resolver.cc65 std::string ClassNameWithoutPackage(const Descriptor* descriptor, in ClassNameWithoutPackage() argument
67 return StripPackageName(descriptor->full_name(), descriptor->file()); in ClassNameWithoutPackage()
71 std::string ClassNameWithoutPackage(const EnumDescriptor* descriptor, in ClassNameWithoutPackage() argument
74 const Descriptor* message_descriptor = descriptor->containing_type(); in ClassNameWithoutPackage()
76 return descriptor->name(); in ClassNameWithoutPackage()
79 descriptor->name(); in ClassNameWithoutPackage()
84 std::string ClassNameWithoutPackage(const ServiceDescriptor* descriptor, in ClassNameWithoutPackage() argument
87 StripPackageName(descriptor->full_name(), descriptor->file()); in ClassNameWithoutPackage()
197 const FileDescriptor* descriptor) { in GetDescriptorClassName() argument
198 return GetFileImmutableClassName(descriptor); in GetDescriptorClassName()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_helpers.h78 std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor);
80 std::string GetExtensionClassUnqualifiedName(const FileDescriptor* descriptor);
82 std::string GetClassName(const EnumDescriptor* descriptor);
84 std::string GetFieldName(const FieldDescriptor* descriptor);
88 std::string GetPropertyName(const FieldDescriptor* descriptor);
110 std::string FileDescriptorToBase64(const FileDescriptor* descriptor);
112 FieldGeneratorBase* CreateFieldGenerator(const FieldDescriptor* descriptor,
116 std::string GetFullExtensionName(const FieldDescriptor* descriptor);
118 bool IsNullable(const FieldDescriptor* descriptor);
122 inline bool IsMapEntryMessage(const Descriptor* descriptor) { in IsMapEntryMessage() argument
[all …]
Dcsharp_helpers.cc114 std::string GetFileNamespace(const FileDescriptor* descriptor) { in GetFileNamespace() argument
115 if (descriptor->options().has_csharp_namespace()) { in GetFileNamespace()
116 return descriptor->options().csharp_namespace(); in GetFileNamespace()
118 return UnderscoresToCamelCase(descriptor->package(), true, true); in GetFileNamespace()
123 std::string GetFileNameBase(const FileDescriptor* descriptor) { in GetFileNameBase() argument
124 std::string proto_file = descriptor->name(); in GetFileNameBase()
130 std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor) { in GetReflectionClassUnqualifiedName() argument
133 return GetFileNameBase(descriptor) + "Reflection"; in GetReflectionClassUnqualifiedName()
136 std::string GetExtensionClassUnqualifiedName(const FileDescriptor* descriptor) { in GetExtensionClassUnqualifiedName() argument
139 return GetFileNameBase(descriptor) + "Extensions"; in GetExtensionClassUnqualifiedName()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DExtensionSchemaFull.java96 int fieldNumber = extension.descriptor.getNumber(); in parseExtension()
98 if (extension.descriptor.isRepeated() && extension.descriptor.isPacked()) { in parseExtension()
100 switch (extension.descriptor.getLiteType()) { in parseExtension()
199 extension.descriptor.getEnumType().findValueByNumber(number); in parseExtension()
213 "Type cannot be packed: " + extension.descriptor.getLiteType()); in parseExtension()
215 extensions.setField(extension.descriptor, value); in parseExtension()
219 if (extension.descriptor.getLiteType() == WireFormat.FieldType.ENUM) { in parseExtension()
221 Object enumValue = extension.descriptor.getEnumType().findValueByNumber(number); in parseExtension()
228 switch (extension.descriptor.getLiteType()) { in parseExtension()
287 if (extension.descriptor.isRepeated()) { in parseExtension()
[all …]
DExtensionSchemaLite.java81 if (extension.descriptor.isRepeated() && extension.descriptor.isPacked()) { in parseExtension()
183 extension.descriptor.getEnumType(), in parseExtension()
191 "Type cannot be packed: " + extension.descriptor.getLiteType()); in parseExtension()
193 extensions.setField(extension.descriptor, value); in parseExtension()
199 Object enumValue = extension.descriptor.getEnumType().findValueByNumber(number); in parseExtension()
272 extensions.addRepeatedField(extension.descriptor, value); in parseExtension()
277 Object oldValue = extensions.getField(extension.descriptor); in parseExtension()
285 extensions.setField(extension.descriptor, value); in parseExtension()
293 GeneratedMessageLite.ExtensionDescriptor descriptor = in extensionNumber() local
295 return descriptor.getNumber(); in extensionNumber()
[all …]
DFieldSet.java252 public boolean hasField(final T descriptor) { in hasField() argument
253 if (descriptor.isRepeated()) { in hasField()
257 return fields.get(descriptor) != null; in hasField()
265 public Object getField(final T descriptor) { in getField() argument
266 Object o = fields.get(descriptor); in getField()
277 public void setField(final T descriptor, Object value) { in setField() argument
278 if (descriptor.isRepeated()) { in setField()
289 verifyType(descriptor.getLiteType(), element); in setField()
293 verifyType(descriptor.getLiteType(), value); in setField()
299 fields.put(descriptor, value); in setField()
[all …]
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.h57 PyObject* NewMessageFieldsByName(const Descriptor* descriptor);
58 PyObject* NewMessageFieldsByCamelcaseName(const Descriptor* descriptor);
59 PyObject* NewMessageFieldsByNumber(const Descriptor* descriptor);
60 PyObject* NewMessageFieldsSeq(const Descriptor* descriptor);
62 PyObject* NewMessageNestedTypesSeq(const Descriptor* descriptor);
63 PyObject* NewMessageNestedTypesByName(const Descriptor* descriptor);
65 PyObject* NewMessageEnumsByName(const Descriptor* descriptor);
66 PyObject* NewMessageEnumsSeq(const Descriptor* descriptor);
67 PyObject* NewMessageEnumValuesByName(const Descriptor* descriptor);
69 PyObject* NewMessageExtensionsByName(const Descriptor* descriptor);
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DWindowSurfaceTests.cpp65 void AssertSurfaceCreation(const wgpu::SurfaceDescriptor* descriptor, bool succeeds) { in AssertSurfaceCreation() argument
66 ASSERT_EQ(mInstance.CreateSurface(descriptor).Get() != nullptr, succeeds); in AssertSurfaceCreation()
90 wgpu::SurfaceDescriptor descriptor; in TEST_F() local
91 descriptor.nextInChain = chainedDescriptor.get(); in TEST_F()
93 AssertSurfaceCreation(&descriptor, true); in TEST_F()
98 wgpu::SurfaceDescriptor descriptor; in TEST_F() local
99 descriptor.nextInChain = nullptr; // That's the default value but we set it for clarity. in TEST_F()
101 AssertSurfaceCreation(&descriptor, false); in TEST_F()
109 wgpu::SurfaceDescriptor descriptor; in TEST_F() local
110 descriptor.nextInChain = &chainedDescriptor; in TEST_F()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DDeviceGL.cpp39 const DawnDeviceDescriptor* descriptor, in Create() argument
41 Ref<Device> device = AcquireRef(new Device(adapter, descriptor, functions)); in Create()
47 const DawnDeviceDescriptor* descriptor, in Device() argument
49 : DeviceBase(adapter, descriptor), gl(functions) { in Device()
116 const BindGroupDescriptor* descriptor) { in CreateBindGroupImpl() argument
117 DAWN_TRY(ValidateGLBindGroupDescriptor(descriptor)); in CreateBindGroupImpl()
118 return BindGroup::Create(this, descriptor); in CreateBindGroupImpl()
121 const BindGroupLayoutDescriptor* descriptor, in CreateBindGroupLayoutImpl() argument
123 return AcquireRef(new BindGroupLayout(this, descriptor, pipelineCompatibilityToken)); in CreateBindGroupLayoutImpl()
125 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) { in CreateBufferImpl() argument
[all …]
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc83 const Descriptor* descriptor = pool_->FindMessageTypeByName(type_name); in ResolveMessageType() local
84 if (descriptor == NULL) { in ResolveMessageType()
88 ConvertDescriptor(descriptor, type); in ResolveMessageType()
100 const EnumDescriptor* descriptor = pool_->FindEnumTypeByName(type_name); in ResolveEnumType() local
101 if (descriptor == NULL) { in ResolveEnumType()
105 ConvertEnumDescriptor(descriptor, enum_type); in ResolveEnumType()
110 void ConvertDescriptor(const Descriptor* descriptor, Type* type) { in ConvertDescriptor() argument
112 type->set_name(descriptor->full_name()); in ConvertDescriptor()
113 for (int i = 0; i < descriptor->field_count(); ++i) { in ConvertDescriptor()
114 ConvertFieldDescriptor(descriptor->field(i), type->add_fields()); in ConvertDescriptor()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc50 void SetCommonFieldVariables(const FieldDescriptor* descriptor, in SetCommonFieldVariables() argument
52 string camel_case_name = FieldName(descriptor); in SetCommonFieldVariables()
54 if (descriptor->type() == FieldDescriptor::TYPE_GROUP) { in SetCommonFieldVariables()
55 raw_field_name = descriptor->message_type()->name(); in SetCommonFieldVariables()
57 raw_field_name = descriptor->name(); in SetCommonFieldVariables()
61 UnCamelCaseFieldName(camel_case_name, descriptor)); in SetCommonFieldVariables()
65 if (descriptor->GetSourceLocation(&location)) { in SetCommonFieldVariables()
70 const string& classname = ClassName(descriptor->containing_type()); in SetCommonFieldVariables()
73 const string& capitalized_name = FieldNameCapitalized(descriptor); in SetCommonFieldVariables()
78 (*variables)["field_number"] = StrCat(descriptor->number()); in SetCommonFieldVariables()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/null/
DDeviceNull.cpp60 ResultOrError<DeviceBase*> Adapter::CreateDeviceImpl(const DawnDeviceDescriptor* descriptor) { in CreateDeviceImpl() argument
61 return Device::Create(this, descriptor); in CreateDeviceImpl()
99 const DawnDeviceDescriptor* descriptor) { in Create() argument
100 Ref<Device> device = AcquireRef(new Device(adapter, descriptor)); in Create()
114 const BindGroupDescriptor* descriptor) { in CreateBindGroupImpl() argument
115 return AcquireRef(new BindGroup(this, descriptor)); in CreateBindGroupImpl()
118 const BindGroupLayoutDescriptor* descriptor, in CreateBindGroupLayoutImpl() argument
120 return AcquireRef(new BindGroupLayout(this, descriptor, pipelineCompatibilityToken)); in CreateBindGroupLayoutImpl()
122 ResultOrError<Ref<BufferBase>> Device::CreateBufferImpl(const BufferDescriptor* descriptor) { in CreateBufferImpl() argument
123 DAWN_TRY(IncrementMemoryUsage(descriptor->size)); in CreateBufferImpl()
[all …]

12345678910>>...70