Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/angle2/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()
459 constexpr unsigned int kBytesPerComponent = sizeof(GLuint); in TEST_P() local
466 glBufferData(GL_SHADER_STORAGE_BUFFER, kBytesPerComponent, &kInitialData, GL_STATIC_DRAW); in TEST_P()
477 glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, kBytesPerComponent, GL_MAP_READ_BIT); in TEST_P()
[all …]
DComputeShaderTest.cpp3895 constexpr unsigned int kBytesPerComponent = sizeof(GLuint); in TEST_P() local
3899 glBufferData(GL_SHADER_STORAGE_BUFFER, 3 * kBytesPerComponent, nullptr, GL_STATIC_DRAW); in TEST_P()
3918 glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, 3 * kBytesPerComponent, GL_MAP_READ_BIT)); in TEST_P()
3957 constexpr unsigned int kBytesPerComponent = sizeof(GLint); in TEST_P() local
3961 glBufferData(GL_SHADER_STORAGE_BUFFER, 1 * kBytesPerComponent, nullptr, GL_STATIC_DRAW); in TEST_P()
3971 glMapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, 1 * kBytesPerComponent, GL_MAP_READ_BIT)); in TEST_P()
/third_party/skia/third_party/externals/angle2/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()
217 checkedOffset /= kBytesPerComponent; in encodeArrayOfPreEncodedStructs()
227 checkedOffset *= kBytesPerComponent; in getCurrentOffset()
247 return (info.offset / kBytesPerComponent) / kComponentsPerRegister; in GetBlockRegister()
253 return (info.offset / kBytesPerComponent) % kComponentsPerRegister; in GetBlockRegisterElement()
298 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()
DShaderStorageBlockOutputHLSL.cpp619 right = Mul(CreateUIntNode(BlockLayoutEncoder::kBytesPerComponent), right); in writeEOpIndexDirectOrIndirectOutput()
634 right = Mul(CreateUIntNode(BlockLayoutEncoder::kBytesPerComponent), right); in writeEOpIndexDirectOrIndirectOutput()
Dblocklayout.h95 static constexpr size_t kBytesPerComponent = 4u; variable