<commit_before>/*!
 * \file painter_attribute.hpp
 * \brief file painter_attribute.hpp
 *
 * Copyright 2016 by Intel.
 *
 * Contact: <EMAIL>
 *
 * This Source Code Form is subject to the
 * terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with
 * this file, You can obtain one at
 * http://mozilla.org/MPL/2.0/.
 *
 * \author <NAME> <<EMAIL>>
 *
 */


#pragma once


#include <fastuidraw/util/vecN.hpp>
namespace fastuidraw
{
/*!\addtogroup Painter
 * @{
 */

  /*!
   * \brief
   * The attribute data generated/filled by \ref Painter.
   * Attribute data is sent to 3D API as raw bits with
   * the expectation that shaders will cast the bits
   * to the appropiate types for themselves.
   */
  class PainterAttribute
  {
  public:
    /*!
     * Generic attribute data
     */
    uvec4 m_attrib0;

    /*!
     * Generic attribute data
     */
    uvec4 m_attrib1;

    /*!
     * Generic attribute data<commit_msg>fastuidraw/painter/painter_attribute: add typedef to pointer to member<commit_after>/*!
 * \file painter_attribute.hpp
 * \brief file painter_attribute.hpp
 *
 * Copyright 2016 by Intel.
 *
 * Contact: <EMAIL>
 *
 * This Source Code Form is subject to the
 * terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with
 * this file, You can obtain one at
 * http://mozilla.org/MPL/2.0/.
 *
 * \author <NAME> <<EMAIL>>
 *
 */


#pragma once


#include <fastuidraw/util/vecN.hpp>
namespace fastuidraw
{
/*!\addtogroup Painter
 * @{
 */

  /*!
   * \brief
   * The attribute data generated/filled by \ref Painter.
   * Attribute data is sent to 3D API as raw bits with
   * the expectation that shaders will cast the bits
   * to the appropiate types for themselves.
   */
  class PainterAttribute
  {
  public:
    /*!
     * conveniance typedef to declare point to an element
     * of PainterAttribute.
     */
    typedef uvec4 PainterAttribute::*pointer_to_field;

    /*!
     * Generic attribute data
     */
    uvec4 m_attrib0;

    /*!
     * Generic attribute data
     */
    uvec4 m_attrib1;

    /*!
     * Generic attribute data
{'fraction_non_alphanumeric': 0.1045475855602438, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 2.550748752079867, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5207067', 'n_tokens_mistral': 700, 'n_tokens_neox': 668, 'n_words': 230}