HomeSort by relevance Sort by last modified time
    Searched full:shader (Results 226 - 250 of 3454) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skqp/gm/
cgm.c 41 sk_shader_t* shader = make_shader(); local
42 sk_paint_set_shader(paint, shader);
43 sk_shader_unref(shader);
  /external/swiftshader/src/D3D9/
D3D9.cpp 34 virtual int __stdcall ValidateShader(long *shader, long *shader1, long *shader2, long *shader3);
35 virtual int __stdcall ValidateShader2(long *shader);
36 virtual int __stdcall ValidateShader3(long *shader, long *shader1, long *shader2, long *shader3);
37 virtual int __stdcall ValidateShader4(long *shader, long *shader1, long *shader2, long *shader3);
38 virtual int __stdcall ValidateShader5(long *shader, long *shader1, long *shader2);
39 virtual int __stdcall ValidateShader6(long *shader, long *shader1, long *shader2, long *shader3);
50 int __stdcall Direct3DShaderValidator9::ValidateShader(long *shader, long *shader1, long *shader2, long *shader3) // FIXME
59 int __stdcall Direct3DShaderValidator9::ValidateShader2(long *shader) // FIXME
68 int __stdcall Direct3DShaderValidator9::ValidateShader3(long *shader, long *shader1, long *shader2, long *shader3)
77 int __stdcall Direct3DShaderValidator9::ValidateShader4(long *shader, long *shader1, long *shader2, long *shader3
    [all...]
  /frameworks/base/libs/hwui/
ProgramCache.h 54 void generateBlend(String8& shader, const char* name, SkBlendMode mode);
55 void generateTextureWrap(String8& shader, GLenum wrapS, GLenum wrapT);
57 void printLongString(const String8& shader) const;
  /frameworks/base/libs/hwui/tests/unit/
ShaderCacheTests.cpp 78 bool checkShader(const sk_sp<SkData>& shader, const char* program) {
80 return shader->size() == shader2->size()
81 && 0 == memcmp(shader->data(), shader2->data(), shader->size());
84 bool checkShader(const sk_sp<SkData>& shader, std::vector<char>& program) {
86 return shader->size() == shader2->size()
87 && 0 == memcmp(shader->data(), shader2->data(), shader->size());
90 void setShader(sk_sp<SkData>& shader, const char* program) {
91 shader = SkData::MakeWithCString(program)
    [all...]
  /frameworks/native/services/surfaceflinger/RenderEngine/
Program.cpp 97 GLuint shader = glCreateShader(type); local
98 glShaderSource(shader, 1, &source, 0);
99 glCompileShader(shader);
101 glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
106 glGetShaderInfoLog(shader, sizeof(log), 0, log);
107 ALOGE("Error while compiling shader: \n%s\n%s", source, log);
108 glDeleteShader(shader);
111 return shader;
115 GLuint shader = GL_FRAGMENT_SHADER ? mFragmentShader : mVertexShader; local
117 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &l)
    [all...]
  /platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
SimpleGLRenderer.java 110 * Utility method for compiling a OpenGL shader.
112 * <strong>Note:</strong> When developing shaders, use the checkGlError() method to debug shader
116 * @param type - Vertex or fragment shader type.
117 * @param shaderCode - String containing the shader code.
118 * @return - Returns an id for the shader.
122 // create a vertex shader type (GLES20.GL_VERTEX_SHADER)
123 // or a fragment shader type (GLES20.GL_FRAGMENT_SHADER)
124 int shader = GLES20.glCreateShader(type); local
126 // add the source code to the shader and compile it
127 GLES20.glShaderSource(shader, shaderCode)
    [all...]
  /external/mesa3d/src/amd/vulkan/
radv_meta_bufimage.c 28 * GFX queue: Compute shader implementation of image->buffer copy
45 b.shader->info->name = ralloc_strdup(b.shader, "meta_itob_cs");
46 b.shader->info->cs.local_size[0] = 16;
47 b.shader->info->cs.local_size[1] = 16;
48 b.shader->info->cs.local_size[2] = 1;
49 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform,
54 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform,
62 b.shader->info->cs.local_size[0],
63 b.shader->info->cs.local_size[1]
    [all...]
  /packages/services/Car/evs/sampleDriver/
GlWrapper.cpp 101 // Given shader source, load and compile it
103 // Create the shader object
104 GLuint shader = glCreateShader (type); local
105 if (shader == 0) {
109 // Load and compile the shader
110 glShaderSource(shader, 1, &shaderSrc, nullptr);
111 glCompileShader(shader);
115 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
117 ALOGE("Error compiling shader\n");
120 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &size)
    [all...]
  /external/deqp/modules/gles2/functional/
es2fNegativeStateApiTests.cpp 148 m_log << TestLog::Message << "// Shader compiler not supported, always expect GL_INVALID_OPERATION" << TestLog::EndMessage;
150 m_log << TestLog::Message << "// Shader compiler supported" << TestLog::EndMessage;
152 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
157 glGetShaderiv(shader, -1, &param[0]);
161 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.");
166 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if pname is GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, or GL_SHADER_SOURCE_LENGTH but a shader compiler is not supported.");
167 glGetShaderiv(shader, GL_COMPILE_STATUS, &param[0]);
169 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &param[0]);
171 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &param[0]);
175 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader does not refer to a shader object.")
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/r200/
r200_fragshader.c 128 const struct ati_fragment_shader *shader = ctx->ATIFragmentShader.Current; local
134 if (shader->NumPasses < 2) {
140 for (pass = 0; pass < shader->NumPasses; pass++) {
143 for (pc = 0; pc < shader->numArithInstr[pass]; pc++) {
145 struct atifs_instruction *inst = &shader->Instructions[pass][pc];
284 if (sat || (pc == (shader->numArithInstr[pass] - 1) &&
285 ((pass == 1) || (shader->NumPasses == 1))))
327 const struct ati_fragment_shader *shader = ctx->ATIFragmentShader.Current; local
334 if (shader->swizzlerq & (1 << (2 * reg)))
350 if (shader->NumPasses < 2)
505 const struct ati_fragment_shader *shader = ctx->ATIFragmentShader.Current; local
    [all...]
  /external/mesa3d/src/gallium/drivers/svga/
svga_pipe_sampler.c 289 enum pipe_shader_type shader,
298 assert(shader < PIPE_SHADER_TYPES);
302 if (!svga_have_vgpu10(svga) && shader != PIPE_SHADER_FRAGMENT)
306 if (svga->curr.sampler[shader][start + i] != samplers[i])
308 svga->curr.sampler[shader][start + i] = samplers[i];
317 unsigned j = MAX2(svga->curr.num_samplers[shader], start + num);
318 while (j > 0 && svga->curr.sampler[shader][j - 1] == NULL)
320 svga->curr.num_samplers[shader] = j;
389 * us to abort) if we try to destroy a shader resource view from
420 enum pipe_shader_type shader,
532 enum pipe_shader_type shader; local
    [all...]
  /external/mesa3d/src/compiler/nir/
nir.c 38 nir_shader *shader = rzalloc(mem_ctx, nir_shader); local
40 exec_list_make_empty(&shader->uniforms);
41 exec_list_make_empty(&shader->inputs);
42 exec_list_make_empty(&shader->outputs);
43 exec_list_make_empty(&shader->shared);
45 shader->options = options;
47 shader->info = si ? si : rzalloc(shader, shader_info);
49 exec_list_make_empty(&shader->functions);
50 exec_list_make_empty(&shader->registers)
    [all...]
nir_lower_var_copies.c 81 nir_shader *shader)
107 &dest_arr->deref, &src_arr->deref, shader);
123 nir_intrinsic_instr_create(shader, nir_intrinsic_load_var);
132 nir_intrinsic_instr_create(shader, nir_intrinsic_store_var);
149 nir_lower_var_copy_instr(nir_intrinsic_instr *copy, nir_shader *shader)
154 &copy->variables[1]->deref, shader);
160 nir_shader *shader = impl->function->shader; local
171 nir_lower_var_copy_instr(copy, shader);
183 nir_lower_var_copies(nir_shader *shader)
    [all...]
  /external/deqp/external/openglcts/modules/glesext/tessellation_shader/
esextcTessellationShaderXFB.cpp 41 "Verifies transform-feedback captures data from appropriate shader stage.")
195 /* Create a shader object */
216 /* Safe to delete the shader object at this point */
234 m_testCtx.getLog() << tcu::TestLog::Message << "Shader source:\n\n"
282 /* Configure fragment shader body */
295 GLU_EXPECT_NO_ERROR(gl.getError(), "glShaderSource() failed for fragment shader");
297 /* Create a fragment shader program */
311 TCU_FAIL("Fragment shader program failed to link.");
314 /* Configure geometry shader body */
339 GLU_EXPECT_NO_ERROR(gl.getError(), "glShaderSource() failed for geometry shader");
504 glw::GLuint shader = shaders[n_shader]; local
    [all...]
esextcTessellationShaderMaxPatchVertices.hpp 42 * a patch and that the tessellation control shader, if it is present, can
48 * gl_MaxPatchVertices (tessellation control shader is present);
50 * gl_MaxPatchVertices (tessellation control shader is not present) (*);
92 glw::GLuint m_fs_id; /* fragment shader object name */
95 glw::GLuint m_tc_id; /* tessellation control shader object name for case 1 */
96 glw::GLuint m_te_id; /* tessellation evaluation shader object name */
99 glw::GLuint m_vs_id; /* vertex shader object name */
109 static const char* m_fs_code; /* fragment shader code */
110 static const char* m_vs_code; /* vertex shader code */
111 static const char* m_tc_code; /* tessellation control shader code *
    [all...]
  /external/skia/include/gpu/
GrShaderCaps.h 25 * special layout qualifiers in the fragment shader.
99 // Returns whether we can use the glsl function any() in our shader code.
113 // the shader.
119 // If true interpolated vertex shader outputs are inaccurate.
126 // The D3D shader compiler, when targeting PS 3.0 (ie within ANGLE) fails to compile certain
132 // Returns the string of an extension that must be enabled in the shader to support
140 // Returns the string of an extension that must be enabled in the shader to support geometry
148 // Returns the string of an extension that must be enabled in the shader to support
149 // geometry shader invocations. If nullptr is returned then no extension needs to be enabled.
159 // shader
    [all...]
  /external/skqp/include/gpu/
GrShaderCaps.h 25 * special layout qualifiers in the fragment shader.
107 // Returns whether we can use the glsl function any() in our shader code.
121 // the shader.
127 // If true interpolated vertex shader outputs are inaccurate.
134 // The D3D shader compiler, when targeting PS 3.0 (ie within ANGLE) fails to compile certain
140 // Returns the string of an extension that must be enabled in the shader to support
148 // Returns the string of an extension that must be enabled in the shader to support geometry
156 // Returns the string of an extension that must be enabled in the shader to support
157 // geometry shader invocations. If nullptr is returned then no extension needs to be enabled.
167 // shader
    [all...]
  /external/swiftshader/src/Shader/
Shader.cpp 15 #include "Shader.hpp"
29 volatile int Shader::serialCounter = 1;
31 Shader::Opcode Shader::OPCODE_DP(int i)
43 Shader::Opcode Shader::OPCODE_LEN(int i)
55 Shader::Opcode Shader::OPCODE_DIST(int i)
67 Shader::Opcode Shader::OPCODE_NRM(int i
    [all...]
  /external/mesa3d/src/gallium/drivers/radeonsi/
si_descriptors.c 35 * This code is also reponsible for updating shader pointers to those lists.
272 si_sampler_descriptors_idx(unsigned shader)
274 return SI_DESCS_FIRST_SHADER + shader * SI_NUM_SHADER_DESCS +
279 si_sampler_descriptors(struct si_context *sctx, unsigned shader)
281 return &sctx->descriptors[si_sampler_descriptors_idx(shader)];
416 unsigned shader,
420 struct si_sampler_views *views = &sctx->samplers[shader].views;
422 struct si_descriptors *descs = si_sampler_descriptors(sctx, shader);
490 sctx->descriptors_dirty |= 1u << si_sampler_descriptors_idx(shader);
500 unsigned shader)
1562 unsigned i, shader; local
1700 unsigned shader; local
1855 unsigned shader = (i - SI_DESCS_FIRST_SHADER) \/ SI_NUM_SHADER_DESCS; local
    [all...]
  /external/mesa3d/src/amd/common/
ac_binary.h 37 /** Shader code */
41 /** Config/Context register state that accompanies this shader.
51 /** Constant data accessed by the shader. This will be uploaded
56 /** List of symbol offsets for the shader */
63 /** Disassembled shader in a string. */
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_vs.h 45 #define BRW_ATTRIB_WA_NORMALIZE 8 /* normalize in shader */
46 #define BRW_ATTRIB_WA_BGRA 16 /* swap r/b channels in shader */
47 #define BRW_ATTRIB_WA_SIGN 32 /* interpret as signed in shader */
48 #define BRW_ATTRIB_WA_SCALE 64 /* interpret as scaled in shader */
78 const nir_shader *shader,
  /external/swiftshader/src/OpenGL/libGLESv2/
Program.h 21 #include "Shader.h"
23 #include "Shader/PixelShader.hpp"
24 #include "Shader/VertexShader.hpp"
38 // Helper struct representing a single shader uniform
74 // Helper struct representing a single shader uniform block
80 void setRegisterIndex(GLenum shader, unsigned int registerIndex);
128 bool attachShader(Shader *shader);
129 bool detachShader(Shader *shader);
    [all...]
  /external/mesa3d/src/gallium/drivers/r600/
evergreen_compute.c 243 struct r600_pipe_compute *shader = CALLOC_STRUCT(r600_pipe_compute); local
253 radeon_shader_binary_init(&shader->binary);
254 radeon_elf_read(code, header->num_bytes, &shader->binary);
255 r600_create_shader(&shader->bc, &shader->binary, &use_kill);
258 shader->code_bo = r600_compute_buffer_alloc_vram(rctx->screen,
259 shader->bc.ndw * 4);
260 p = r600_buffer_map_sync_with_rings(&rctx->b, shader->code_bo, PIPE_TRANSFER_WRITE);
262 memcpy(p, shader->bc.bytecode, shader->bc.ndw * 4)
277 struct r600_pipe_compute *shader = state; local
316 struct r600_pipe_compute *shader = rctx->cs_shader_state.shader; local
384 struct r600_pipe_compute *shader = rctx->cs_shader_state.shader; local
564 struct r600_pipe_compute *shader = state->shader; local
593 struct r600_pipe_compute *shader = rctx->cs_shader_state.shader; local
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
ResourceModifier.java 30 import android.graphics.Shader;
62 repeatShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT,
63 Shader.TileMode.REPEAT);
65 translatedShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT,
66 Shader.TileMode.REPEAT);
72 scaledShader = new BitmapShader(bitmap, Shader.TileMode.MIRROR,
73 Shader.TileMode.MIRROR);
79 Color.RED, Color.GREEN, Shader.TileMode.CLAMP);
87 Color.BLUE, Color.RED, Shader.TileMode.CLAMP);
90 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR)
    [all...]
  /external/deqp/data/gles31/shaders/es31/
linkage_shader_storage_block.test 4 desc "Shader storage block mismatch: different number of declarations"
43 desc "Shader storage block mismatch: different number of declarations"
83 desc "Shader storage block mismatch: different number of declarations"
121 desc "Shader storage block mismatch: different number of declarations"
159 desc "Shader storage block mismatch: different number of declarations"
197 desc "Shader storage block mismatch: different number of declarations"
235 desc "Shader storage block mismatch: different number of declarations"
273 desc "Shader storage block mismatch: different number of declarations"
311 desc "Unnamed shader storage block variable and global variable with identical names"
344 desc "Two unnamed shader storage blocks with variables with identical names
    [all...]

Completed in 844 milliseconds

1 2 3 4 5 6 7 8 91011>>