• Home
  • Raw
  • Download

Lines Matching refs:mNativeCaps

585     return mNativeCaps;
614 mNativeCaps = gl::Caps();
621 mNativeCaps.maxElementIndex = std::numeric_limits<GLuint>::max() - 1;
622 mNativeCaps.max3DTextureSize = 2048;
624 mNativeCaps.max2DTextureSize = 16384;
626 mNativeCaps.maxVaryingVectors = 31 - 1;
627 mNativeCaps.maxVertexOutputComponents = mNativeCaps.maxFragmentInputComponents = 124 - 4;
631 mNativeCaps.max2DTextureSize = 16384;
632 mNativeCaps.maxVertexOutputComponents = mNativeCaps.maxFragmentInputComponents = 124;
633 mNativeCaps.maxVaryingVectors = mNativeCaps.maxVertexOutputComponents / 4;
637 mNativeCaps.max2DTextureSize = 8192;
638 mNativeCaps.maxVertexOutputComponents = mNativeCaps.maxFragmentInputComponents = 60;
639 mNativeCaps.maxVaryingVectors = mNativeCaps.maxVertexOutputComponents / 4;
643 mNativeCaps.maxArrayTextureLayers = 2048;
644 mNativeCaps.maxLODBias = 2.0; // default GLES3 limit
645 mNativeCaps.maxCubeMapTextureSize = mNativeCaps.max2DTextureSize;
646 mNativeCaps.maxRenderbufferSize = mNativeCaps.max2DTextureSize;
647 mNativeCaps.minAliasedPointSize = 1;
651 mNativeCaps.maxAliasedPointSize = 64;
653 mNativeCaps.minAliasedLineWidth = 1.0f;
654 mNativeCaps.maxAliasedLineWidth = 1.0f;
656 mNativeCaps.maxDrawBuffers = mtl::kMaxRenderTargets;
657 mNativeCaps.maxFramebufferWidth = mNativeCaps.max2DTextureSize;
658 mNativeCaps.maxFramebufferHeight = mNativeCaps.max2DTextureSize;
659 mNativeCaps.maxColorAttachments = mtl::kMaxRenderTargets;
660 mNativeCaps.maxViewportWidth = mNativeCaps.max2DTextureSize;
661 mNativeCaps.maxViewportHeight = mNativeCaps.max2DTextureSize;
664 mNativeCaps.maxSamples = mFormatTable.getMaxSamples();
665 mNativeCaps.maxSampleMaskWords = 0;
666 mNativeCaps.maxColorTextureSamples = mNativeCaps.maxSamples;
667 mNativeCaps.maxDepthTextureSamples = mNativeCaps.maxSamples;
668 mNativeCaps.maxIntegerSamples = 1;
670 mNativeCaps.maxVertexAttributes = mtl::kMaxVertexAttribs;
671 mNativeCaps.maxVertexAttribBindings = mtl::kMaxVertexAttribs;
672 mNativeCaps.maxVertexAttribRelativeOffset = std::numeric_limits<GLint>::max();
673 mNativeCaps.maxVertexAttribStride = std::numeric_limits<GLint>::max();
676 mNativeCaps.maxElementsIndices = std::numeric_limits<GLint>::max();
677 mNativeCaps.maxElementsVertices = std::numeric_limits<GLint>::max();
680 mNativeCaps.vertexHighpFloat.setIEEEFloat();
681 mNativeCaps.vertexMediumpFloat.setIEEEFloat();
682 mNativeCaps.vertexLowpFloat.setIEEEFloat();
683 mNativeCaps.fragmentHighpFloat.setIEEEFloat();
684 mNativeCaps.fragmentMediumpFloat.setIEEEFloat();
685 mNativeCaps.fragmentLowpFloat.setIEEEFloat();
687 mNativeCaps.vertexHighpInt.setTwosComplementInt(32);
688 mNativeCaps.vertexMediumpInt.setTwosComplementInt(32);
689 mNativeCaps.vertexLowpInt.setTwosComplementInt(32);
690 mNativeCaps.fragmentHighpInt.setTwosComplementInt(32);
691 mNativeCaps.fragmentMediumpInt.setTwosComplementInt(32);
692 mNativeCaps.fragmentLowpInt.setTwosComplementInt(32);
700 mNativeCaps.maxVertexUniformVectors = maxDefaultUniformVectors;
701 mNativeCaps.maxShaderUniformComponents[gl::ShaderType::Vertex] = maxDefaultUniformComponents;
702 mNativeCaps.maxFragmentUniformVectors = maxDefaultUniformVectors;
703 mNativeCaps.maxShaderUniformComponents[gl::ShaderType::Fragment] = maxDefaultUniformComponents;
705 mNativeCaps.maxShaderUniformBlocks[gl::ShaderType::Vertex] = mtl::kMaxShaderUBOs;
706 mNativeCaps.maxShaderUniformBlocks[gl::ShaderType::Fragment] = mtl::kMaxShaderUBOs;
707 mNativeCaps.maxCombinedUniformBlocks = mtl::kMaxGLUBOBindings;
711 mNativeCaps.maxCombinedTextureImageUnits = mtl::kMaxGLSamplerBindings;
712 mNativeCaps.maxShaderTextureImageUnits[gl::ShaderType::Fragment] = mtl::kMaxShaderSamplers;
713 mNativeCaps.maxShaderTextureImageUnits[gl::ShaderType::Vertex] = mtl::kMaxShaderSamplers;
716 mNativeCaps.minProgramTexelOffset = -8;
717 mNativeCaps.maxProgramTexelOffset = 7;
721 mNativeCaps.maxShaderStorageBlocks[gl::ShaderType::Vertex] = maxPerStageStorageBuffers;
722 mNativeCaps.maxShaderStorageBlocks[gl::ShaderType::Fragment] = maxPerStageStorageBuffers;
723 mNativeCaps.maxCombinedShaderStorageBlocks = maxPerStageStorageBuffers;
726 mNativeCaps.maxUniformBufferBindings = mNativeCaps.maxCombinedUniformBlocks;
727 mNativeCaps.maxUniformBlockSize = mtl::kMaxUBOSize; // Default according to GLES 3.0 spec.
728 mNativeCaps.uniformBufferOffsetAlignment = 1;
730 mNativeCaps.maxShaderStorageBufferBindings = 0;
731 mNativeCaps.maxShaderStorageBlockSize = 0;
732 mNativeCaps.shaderStorageBufferOffsetAlignment = 0;
739 mNativeCaps.maxCombinedShaderUniformComponents[shaderType] = maxCombinedUniformComponents;
742 mNativeCaps.maxCombinedShaderOutputResources = 0;
744 mNativeCaps.maxTransformFeedbackInterleavedComponents =
746 mNativeCaps.maxTransformFeedbackSeparateAttributes =
748 mNativeCaps.maxTransformFeedbackSeparateComponents =
752 mNativeCaps.programBinaryFormats.push_back(GL_PROGRAM_BINARY_ANGLE);
755 mNativeCaps.maxClipDistances = 8;
764 mNativeCaps.driverUniformsBindingIndex = mtl::kDriverUniformsBindingIndex;
765 mNativeCaps.defaultUniformsBindingIndex = mtl::kDefaultUniformsBindingIndex;
766 mNativeCaps.UBOArgumentBufferBindingIndex = mtl::kUBOArgumentBufferBindingIndex;
873 &mNativeCaps.compressedTextureFormats);