DXGL r400 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r399
|
r400
|
r401
>
Date:
22:49, 5 August 2013
Author:
admin
Status:
new
Tags:
Comment:
Add OpenGL2 compatible supported ROP list.
Add OpenGL2 compatible ROP functions.
Modified paths:
/ddraw/shadergen2d.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/shadergen2d.cpp
—
—
@@ -123,9 +123,22 @@
124
124
0x00000000
125
125
};
126
126
127
-static const char header[] =
128
- "//REV" STR(SHADER2DVERSION) "\n\
129
-#version 110\n";
127
+const DWORD supported_rops_gl2[8] = {
128
+ 0x00000001,
129
+ 0x00000000,
130
+ 0x00000000,
131
+ 0x00000000,
132
+ 0x00000000,
133
+ 0x00000000,
134
+ 0x00001000,
135
+ 0x80000000
136
+};
137
+
138
+static const char revheader[] =
139
+ "//REV" STR(SHADER2DVERSION) "\n";
140
+static const char version_110[] = "#version 110\n";
141
+static const char version_130[] = "#version 130\n";
142
+static const char ext_shader4[] = "#extension GL_EXT_gpu_shader4 : require";
130
143
static const char vertexshader[] = "//2D Vertex Shader\n";
131
144
static const char fragshader[] = "//2D Fragment Shader\n";
132
145
static const char idheader[] = "//ID: 0x";
—
—
@@ -414,4 +427,263 @@
415
428
"",
416
429
"",
417
430
"dest = ivec4(255);\n",//FF WHITENESS
431
+};
432
+
433
+static const char *op_ROP_float[256] = {
434
+"gl_FragColor = vec4(0.0);",//00 BLACKNESS
435
+"",
436
+"",
437
+"",
438
+"",
439
+"",
440
+"",
441
+"",
442
+"",
443
+"",
444
+"",
445
+"",
446
+"",
447
+"",
448
+"",
449
+"",//0F
450
+"",//10
451
+"",
452
+"",
453
+"",
454
+"",
455
+"",
456
+"",
457
+"",
458
+"",
459
+"",
460
+"",
461
+"",
462
+"",
463
+"",
464
+"",
465
+"",//1F
466
+"",//20
467
+"",
468
+"",
469
+"",
470
+"",
471
+"",
472
+"",
473
+"",
474
+"",
475
+"",
476
+"",
477
+"",
478
+"",
479
+"",
480
+"",
481
+"",//2F
482
+"",//30
483
+"",
484
+"",
485
+"",
486
+"",
487
+"",
488
+"",
489
+"",
490
+"",
491
+"",
492
+"",
493
+"",
494
+"",
495
+"",
496
+"",
497
+"",//3F
498
+"",//40
499
+"",
500
+"",
501
+"",
502
+"",
503
+"",
504
+"",
505
+"",
506
+"",
507
+"",
508
+"",
509
+"",
510
+"",
511
+"",
512
+"",
513
+"",//4F
514
+"",//50
515
+"",
516
+"",
517
+"",
518
+"",
519
+"",
520
+"",
521
+"",
522
+"",
523
+"",
524
+"",
525
+"",
526
+"",
527
+"",
528
+"",
529
+"",//5F
530
+"",//60
531
+"",
532
+"",
533
+"",
534
+"",
535
+"",
536
+"",
537
+"",
538
+"",
539
+"",
540
+"",
541
+"",
542
+"",
543
+"",
544
+"",
545
+"",//6F
546
+"",//70
547
+"",
548
+"",
549
+"",
550
+"",
551
+"",
552
+"",
553
+"",
554
+"",
555
+"",
556
+"",
557
+"",
558
+"",
559
+"",
560
+"",
561
+"",//7F
562
+"",//80
563
+"",
564
+"",
565
+"",
566
+"",
567
+"",
568
+"",
569
+"",
570
+"",
571
+"",
572
+"",
573
+"",
574
+"",
575
+"",
576
+"",
577
+"",//8F
578
+"",//90
579
+"",
580
+"",
581
+"",
582
+"",
583
+"",
584
+"",
585
+"",
586
+"",
587
+"",
588
+"",
589
+"",
590
+"",
591
+"",
592
+"",
593
+"",//9F
594
+"",//A0
595
+"",
596
+"",
597
+"",
598
+"",
599
+"",
600
+"",
601
+"",
602
+"",
603
+"",
604
+"",
605
+"",
606
+"",
607
+"",
608
+"",
609
+"",//AF
610
+"",//B0
611
+"",
612
+"",
613
+"",
614
+"",
615
+"",
616
+"",
617
+"",
618
+"",
619
+"",
620
+"",
621
+"",
622
+"",
623
+"",
624
+"",
625
+"",//BF
626
+"",//C0
627
+"",
628
+"",
629
+"",
630
+"",
631
+"",
632
+"",
633
+"",
634
+"",
635
+"",
636
+"",
637
+"",
638
+"gl_FragColor = pixel;\n",//CC SRCCOPY
639
+"",
640
+"",
641
+"",//CF
642
+"",//D0
643
+"",
644
+"",
645
+"",
646
+"",
647
+"",
648
+"",
649
+"",
650
+"",
651
+"",
652
+"",
653
+"",
654
+"",
655
+"",
656
+"",
657
+"",//DF
658
+"",//E0
659
+"",
660
+"",
661
+"",
662
+"",
663
+"",
664
+"",
665
+"",
666
+"",
667
+"",
668
+"",
669
+"",
670
+"",
671
+"",
672
+"",
673
+"",//EF
674
+"",//F0
675
+"",
676
+"",
677
+"",
678
+"",
679
+"",
680
+"",
681
+"",
682
+"",
683
+"",
684
+"",
685
+"",
686
+"",
687
+"",
688
+"",
689
+"gl_FragColor = vec4(1.0);\n",//FF WHITENESS
418
690
};
\ No newline at end of file
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version