<commit_before>#pragma once
#include "BufferDX11.h"
#include "ShaderDX11.h"

namespace Mile
{
   class MEAPI ConstantBufferDX11 : public BufferDX11
   {
   public:
      ConstantBufferDX11( RendererDX11* renderer ) :
         BufferDX11( renderer )
      {
      }

      ~ConstantBufferDX11( )
      {
         this->UnMap( );
      }

      bool Init( unsigned int size );
      
      virtual RenderResourceType GetResourceType( ) const override { return RenderResourceType::RDRT_ConstantBuffer; }

      virtual void* Map( ) override;
      virtual bool UnMap( ) override;

      bool Bind( unsigned int slot, ShaderType shaderType );

   };
}<commit_msg>Added Constant Buffer Unbind method<commit_after>#pragma once
#include "BufferDX11.h"
#include "ShaderDX11.h"

namespace Mile
{
   class MEAPI ConstantBufferDX11 : public BufferDX11
   {
   public:
      ConstantBufferDX11( RendererDX11* renderer ) :
         m_bIsBinded( false ),
         m_bindedSlot( 0 ),
         m_bindedShader( ShaderType::PixelShader ),
         BufferDX11( renderer )
      {
      }

      ~ConstantBufferDX11( )
      {
         this->UnMap( );
      }

      bool Init( unsigned int size );
      
      virtual RenderResourceType GetResourceType( ) const override { return RenderResourceType::RDRT_ConstantBuffer; }

      virtual void* Map( ) override;
      virtual bool UnMap( ) override;

      bool Bind( unsigned int slot, ShaderType shaderType );
      void Unbind( );

   private:
      bool           m_bIsBinded;
      unsigned int   m_bindedSlot;
      ShaderType     m_bindedShader;

   };
}
{'fraction_non_alphanumeric': 0.08417085427135679, 'fraction_numerical': 0.0207286432160804, 'mean_word_length': 2.4934210526315788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3296652', 'n_tokens_mistral': 517, 'n_tokens_neox': 468, 'n_words': 116}