Home
last modified time | relevance | path

Searched +refs:clang +refs:format +refs:buffer (Results 1 – 25 of 275) sorted by relevance

1234567891011

/external/mesa3d/docs/
Dcodingstyle.rst9 try following the format of existing, neighboring code.
11 ``clang-format``
14 A growing number of drivers and components are adopting ``clang-format``
17 You can re-format the code for the components that have opted-in to the
18 formatting enforcement (listed in ``.clang-format-include``) by simply
19 running ``ninja -C build/ clang-format``.
33 Add this to your ``.vimrc`` to automatically format any C & C++ file
34 (that has a .clang-format config) when you save it:
42 " Only format files that have a .clang-format in a parent folder
43 if !empty(findfile('.clang-format', '.;'))
[all …]
/external/webrtc/sdk/objc/unittests/
Dnalu_rewriter_xctest.mm30 // clang-format off
37 // clang-format on
50 // clang-format off
60 // clang-format on
117 // clang-format off
121 // clang-format on
132 // clang-format off
138 // clang-format on
159 std::unique_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]);
160 memset(buffer.get(), 0, buffer_size);
[all …]
/external/mesa3d/src/vulkan/runtime/radix_sort/shaders/
Dprefix.comp11 // clang-format off
16 // clang-format on
52 // clang-format off
57 // clang-format on
65 // Histogram buffer reference
67 layout(buffer_reference, std430) buffer buffer_rs_histograms
103 // clang-format off
106 // clang-format on
120 // Define buffer reference to read histograms
122 // NOTE(allanmac): The histogram buffer reference could be adjusted
Dfill.comp11 // clang-format off
14 // clang-format on
55 // clang-format off
59 // clang-format on
69 layout(buffer_reference, std430) buffer buffer_rs_indirect_info_fill
74 layout(buffer_reference, std430) buffer buffer_rs_dwords
Dinit.comp11 // clang-format off
14 // clang-format on
55 // clang-format off
63 // clang-format on
73 layout(buffer_reference, std430) buffer buffer_rs_count
78 layout(buffer_reference, std430) buffer buffer_rs_indirect_info
164 // parameters are zeroes because the host can offset the buffer
/external/pytorch/aten/src/ATen/native/vulkan/glsl/
Dunary_op.glsl2 // clang-format off
7 // clang-format on
9 layout(std430) buffer;
11 // clang-format off
25 // clang-format on
35 // clang-format off
42 // clang-format on
Dbinary_op_scalar.glsl2 // clang-format off
7 // clang-format on
9 layout(std430) buffer;
11 // clang-format off
29 // clang-format on
46 // clang-format off
53 // clang-format on
Dimage2d_to_nchw.glsl2 // clang-format off
4 // clang-format on
6 layout(std430) buffer;
16 layout(set = 0, binding = 1) buffer PRECISION restrict writeonly Buffer {
26 // calculate buffer offsets
Dimage_to_nchw_int32.glsl2 // clang-format off
4 // clang-format on
6 layout(std430) buffer;
16 layout(set = 0, binding = 1) buffer PRECISION restrict writeonly Buffer {
26 // calculate buffer offsets
Dbinary_op_tensor.glsl2 // clang-format off
7 // clang-format on
11 layout(std430) buffer;
13 // clang-format off
34 // clang-format on
59 // clang-format off
78 // clang-format on
Dimage_to_nchw.glsl2 // clang-format off
4 // clang-format on
6 layout(std430) buffer;
16 layout(set = 0, binding = 1) buffer PRECISION restrict writeonly Buffer {
26 // calculate buffer offsets
Dimage_to_nchw_quantized_mul4.glsl2 // clang-format off
4 // clang-format on
6 layout(std430) buffer;
16 layout(set = 0, binding = 1) buffer PRECISION restrict writeonly Buffer {
26 // calculate buffer offsets
54 // input in nchw format. xy_pos contains the positions of these four
74 // only copy valid texels as the 1D buffer is dense
Dimage_to_nchw_uint.glsl2 // clang-format off
4 // clang-format on
6 layout(std430) buffer;
16 layout(set = 0, binding = 1) buffer PRECISION restrict writeonly Buffer {
26 // calculate buffer offsets
48 // input in nchw format. input_pos contains the positions of these four
49 // elements from the input in nchw format.
/external/angle/src/common/
Dandroid_util.cpp30 # pragma clang diagnostic push
31 # pragma clang diagnostic ignored "-Wzero-length-array"
38 # pragma clang diagnostic pop
76 int format; member
214 aHardwareBufferDescription.format = androidFormat; in CreateEGLClientBufferFromAHardwareBuffer()
231 void GetANativeWindowBufferProperties(const ANativeWindowBuffer *buffer, in GetANativeWindowBufferProperties() argument
238 *width = buffer->width; in GetANativeWindowBufferProperties()
239 *height = buffer->height; in GetANativeWindowBufferProperties()
240 *depth = static_cast<int>(buffer->layerCount); in GetANativeWindowBufferProperties()
241 *height = buffer->height; in GetANativeWindowBufferProperties()
[all …]
/external/clang/docs/
DClangFormat.rst13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used
14 to format C/C++/Obj-C code.
18 $ clang-format -help
19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.
27 USAGE: clang-format [options] [<file> ...]
31 Clang-format options:
33 -assume-filename=<string> - When reading from stdin, clang-format assumes this
37 clang-format from an editor integration
41 fallback in case clang-format is invoked with
42 -style=file, but can not find the .clang-format
[all …]
/external/webrtc/test/
Dmac_capturer.mm28 rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer =
29 rtc::make_ref_counted<webrtc::ObjCFrameBuffer>(frame.buffer);
31 .set_video_frame_buffer(buffer)
46 for (AVCaptureDeviceFormat *format in formats) {
47 CMVideoDimensions dimension = CMVideoFormatDescriptionGetDimensions(format.formatDescription);
51 selectedFormat = format;
77 AVCaptureDeviceFormat *format = SelectClosestFormat(device, width, height);
78 [capturer startCaptureWithDevice:device format:format fps:target_fps];
89 #pragma clang diagnostic push
90 #pragma clang diagnostic ignored "-Wunused-variable"
[all …]
/external/webrtc/third_party/crc32c/src/
DREADME.md6 New file format authors should consider
27 const std::uint8_t buffer[] = {0, 0, 0, 0};
30 // Process a raw buffer.
31 result = crc32c::Crc32c(buffer, 4);
62 apm install autocomplete-clang build build-cmake clang-format language-cmake \
63 linter linter-clang
67 `autocomplete-clang` and `linter-clang` with `you-complete-me`. This requires
71 apm install autocomplete-plus build build-cmake clang-format language-cmake \
104 -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \
/external/cronet/stable/third_party/protobuf/objectivec/
DGPBCodedOutputStream.m1 // Protocol Buffers - Google's data interchange format
62 // Internal helper that writes the current buffer to the output. The
63 // buffer position is reset to its initial value when this returns.
66 // We're writing to a single buffer.
67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""];
73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""];
128 uint32_t fieldNumber, GPBWireFormat format) {
129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format));
198 #pragma clang diagnostic push
199 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
[all …]
/external/cronet/tot/third_party/protobuf/objectivec/
DGPBCodedOutputStream.m1 // Protocol Buffers - Google's data interchange format
62 // Internal helper that writes the current buffer to the output. The
63 // buffer position is reset to its initial value when this returns.
66 // We're writing to a single buffer.
67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""];
73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""];
128 uint32_t fieldNumber, GPBWireFormat format) {
129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format));
198 #pragma clang diagnostic push
199 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
[all …]
/external/protobuf/objectivec/
DGPBCodedOutputStream.m1 // Protocol Buffers - Google's data interchange format
62 // Internal helper that writes the current buffer to the output. The
63 // buffer position is reset to its initial value when this returns.
66 // We're writing to a single buffer.
67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""];
73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""];
128 uint32_t fieldNumber, GPBWireFormat format) {
129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format));
198 #pragma clang diagnostic push
199 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
[all …]
/external/executorch/backends/vulkan/test/glsl/
Dbinary_op_nobroadcast__test.glsl15 layout(std430) buffer;
17 // clang-format off
19 // clang-format on
/external/curl/lib/
Dmprintf.c158 char *buffer; member
213 static int parsefmt(const char *format, in parsefmt() argument
219 char *fmt = (char *)format; in parsefmt()
669 const char *format, /* %-formatted string */ in formatf() argument
689 if(parsefmt(format, output, input, &ocount, &icount, ap_save)) in formatf()
1011 #pragma clang diagnostic push in formatf()
1012 #pragma clang diagnostic ignored "-Wformat-nonliteral" in formatf()
1027 #pragma clang diagnostic pop in formatf()
1063 *infop->buffer++ = (char)outc; /* store */ in addbyter()
1070 int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, in curl_mvsnprintf() argument
[all …]
/external/llvm/test/DebugInfo/Sparc/
Dgnu-window-save.ll7 ; SPARC64: file format ELF64-sparc
23 ; SPARC32: file format ELF32-sparc
51 …af" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-…
52 …af" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-…
58 …inct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (http://llvm.org/git/clang
68 !11 = !{!"clang version 3.5 (http://llvm.org/git/clang.git 6a0714fee07fb7c4e32d3972b4fe2ce2f5678cf4…
/external/angle/src/libANGLE/renderer/metal/
DIOSurfaceSurfaceMtl.mm44 // clang-format off
46 // or B8G8R8X8_UNORM based on the IOSurface's pixel format.
58 // clang-format on
78 EGLClientBuffer buffer,
80 : OffscreenSurfaceMtl(display, state, attribs), mIOSurface((__bridge IOSurfaceRef)(buffer))
96 // The actual angle::Format depends on the IOSurface's format.
124 EGLint buffer)
132 return OffscreenSurfaceMtl::bindTexImage(context, texture, buffer);
135 egl::Error IOSurfaceSurfaceMtl::releaseTexImage(const gl::Context *context, EGLint buffer)
137 egl::Error re = OffscreenSurfaceMtl::releaseTexImage(context, buffer);
[all …]
/external/angle/src/libANGLE/renderer/vulkan/mac/
DIOSurfaceSurfaceVkMac.mm39 // clang-format off
50 // clang-format on
68 EGLClientBuffer buffer,
74 mIOSurface = reinterpret_cast<IOSurfaceRef>(buffer);
118 const vk::Format &format =
121 // Swiftshader will use the raw pointer to the buffer referenced by the IOSurfaceRef
122 ANGLE_TRY(mColorAttachment.initialize(displayVk, mWidth, mHeight, format, samples,
159 EGLint buffer)
180 const vk::Format &format =
188 reinterpret_cast<uint8_t *>(source), format, vk::ImageAccess::Renderable,
[all …]

1234567891011