Beispiel #1
0
        internal EffectParameter(EffectParameterClass class_,
                                 EffectParameterType type,
                                 string name,
                                 int rowCount,
                                 int columnCount,
                                 string semantic,
                                 EffectAnnotationCollection annotations,
                                 EffectParameterCollection elements,
                                 EffectParameterCollection structMembers,
                                 object data)
        {
            ParameterClass = class_;
            ParameterType  = type;

            Name     = name;
            Semantic = semantic;

            Annotations = annotations;
            RowCount    = rowCount;
            ColumnCount = columnCount;

            Elements         = elements;
            StructureMembers = structMembers;

            Data = data;

            StateKey = unchecked (NextStateKey++);
        }
Beispiel #2
0
        internal EffectPass(Effect effect, string name,
                            Shader vertexShader, Shader pixelShader, BlendState blendState,
                            DepthStencilState depthStencilState, RasterizerState rasterizerState, EffectAnnotationCollection annotations)
        {
            _effect = effect;
            Name    = name;

            _vertexShader = vertexShader;
            _pixelShader  = pixelShader;

            _blendState        = blendState;
            _depthStencilState = depthStencilState;
            _rasterizerState   = rasterizerState;

            Annotations = annotations;
        }
Beispiel #3
0
 internal EffectTechnique(Effect effect, EffectTechnique cloneSource)
 {
     Name        = cloneSource.Name;
     Annotations = cloneSource.Annotations;
     Passes      = cloneSource.Passes.Clone(effect);
 }
Beispiel #4
0
 internal EffectTechnique(Effect effect, string name, EffectPassCollection passes, EffectAnnotationCollection annotations)
 {
     Name        = name;
     Passes      = passes;
     Annotations = annotations;
 }