Home
last modified time | relevance | path

Searched refs:kBytesPerComponent (Results 1 – 6 of 6) sorted by relevance

/external/angle/src/tests/gl_tests/
DShaderStorageBufferTest.cpp36 const unsigned int kBytesPerComponent = sizeof(float); member
54 const unsigned int kBytesPerComponent = sizeof(GLuint); member
105 matrixCase.kBytesPerComponent) + in runMatrixTest()
108 *(ptr + row * (matrixCase.mMatrixStride / matrixCase.kBytesPerComponent) + col); in runMatrixTest()
126 vectorCase.mComponents * vectorCase.kBytesPerComponent, vectorCase.mInputdata, in runVectorTest()
130 vectorCase.mComponents * vectorCase.kBytesPerComponent, nullptr, in runVectorTest()
143 GL_SHADER_STORAGE_BUFFER, 0, vectorCase.mComponents * vectorCase.kBytesPerComponent, in runVectorTest()
335 constexpr unsigned int kBytesPerComponent = sizeof(GLuint); in TEST_P() local
342 glBufferData(GL_SHADER_STORAGE_BUFFER, kBytesPerComponent, &kInitialData, GL_STATIC_DRAW); in TEST_P()
353 glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, kBytesPerComponent, GL_MAP_READ_BIT); in TEST_P()
[all …]
DComputeShaderTest.cpp3816 constexpr unsigned int kBytesPerComponent = sizeof(GLuint); in TEST_P() local
3820 glBufferData(GL_SHADER_STORAGE_BUFFER, 3 * kBytesPerComponent, nullptr, GL_STATIC_DRAW); in TEST_P()
3839 glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, 3 * kBytesPerComponent, GL_MAP_READ_BIT)); in TEST_P()
3878 constexpr unsigned int kBytesPerComponent = sizeof(GLint); in TEST_P() local
3882 glBufferData(GL_SHADER_STORAGE_BUFFER, 1 * kBytesPerComponent, nullptr, GL_STATIC_DRAW); in TEST_P()
3892 glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, 1 * kBytesPerComponent, GL_MAP_READ_BIT)); in TEST_P()
/external/angle/src/compiler/translator/
Dblocklayout.cpp192 const BlockMemberInfo memberInfo(static_cast<int>(mCurrentOffset * kBytesPerComponent), in encodeType()
193 static_cast<int>(arrayStride * kBytesPerComponent), in encodeType()
194 static_cast<int>(matrixStride * kBytesPerComponent), in encodeType()
212 const BlockMemberInfo memberInfo(static_cast<int>(mCurrentOffset * kBytesPerComponent), in encodeArrayOfPreEncodedStructs()
215 mCurrentOffset += arrayStride * outermostArraySize / kBytesPerComponent; in encodeArrayOfPreEncodedStructs()
236 return (info.offset / kBytesPerComponent) / kComponentsPerRegister; in GetBlockRegister()
242 return (info.offset / kBytesPerComponent) % kComponentsPerRegister; in GetBlockRegisterElement()
281 ASSERT(gl::VariableComponentSize(gl::VariableComponentType(type)) == kBytesPerComponent); in getBlockLayoutInfo()
DblocklayoutHLSL.cpp38 ASSERT(gl::VariableComponentSize(gl::VariableComponentType(type)) == kBytesPerComponent); in getBlockLayoutInfo()
163 const size_t registerBytes = (encoder.kBytesPerComponent * encoder.kComponentsPerRegister); in HLSLVariableRegisterCount()
Dblocklayout.h88 size_t getCurrentOffset() const { return mCurrentOffset * kBytesPerComponent; } in getCurrentOffset()
95 static constexpr size_t kBytesPerComponent = 4u; variable
DShaderStorageBlockOutputHLSL.cpp619 right = Mul(CreateUIntNode(BlockLayoutEncoder::kBytesPerComponent), right); in writeEOpIndexDirectOrIndirectOutput()
634 right = Mul(CreateUIntNode(BlockLayoutEncoder::kBytesPerComponent), right); in writeEOpIndexDirectOrIndirectOutput()