How to diable mipmap in DirectX 11

I am develop the 2D game,
so I didn't need mipmap, I want to disable that.
Can you give me some sample code?

When creating the texture, set the number of mipmap levels to 1 instead of 0.  See docs for
D3D11_TEXTURE2D_DESC::MipLevels The default, 0, means to generate all mipmap levels.
Also, set the sampler's filtering mode to something that doesn't use mipmapping.  Something of the form: D3D11_FILTER_xxxxxx_MIP_POINT.

Similar Messages

  • How to diable the default option of report-based total (when applicable)

    Hi,
    Anybody know how to diable the default option of report-based total (when applicable)?
    By default this aggregation rule option is checked.
    There should be some configuration tag in instanceconfig.xml or somewhere else, such as <ReportAggregateEnabled>true</ReportAggregateEnabled>?
    Regards,
    Tina

    you can change this from admin tool,
    open admin tool,
    business model and mapping
    find your column in the model
    double click your column, click on aggregation, >> default rule >> none.
    but if you do this, you cant make any sum operation.

  • How to diable the default 'help' link in the CRM PCUI transaction

    Hi,
      Most of our PCUI application( example opportunity( CRMD_BUS20011), Product( CRMM_PRD_SALES) , Business partner have the 'Help' link appearing near the 'Personalize' link in the PCUI page..
      How can we diable this 'Help' link so that it no longer appears in the screen.
      Thanks
    Arunava

    I am reposting this again in hope of some help.
    Thanks
    Arunava

  • How to diable JDialog on refresh of a data in a tab

    Hi,
    I have an application which has a tab1 which contains a Jtable.On clicking a cell in Jtable a JDialog appears showing some more info on the cell clicked.
    Now i want to do this...
    When i refresh the tab1 the corresponding Jdialog should become empty without any value, assuming that tab1 content has changed.
    How i can go about doing the above?
    A simple code snippet/idea would be of great help.
    Thanks.

    Continued code
    fetch();
                        fetch2();
                        /*table.tableChanged(new TableModelEvent(table.getModel()));
                        if (pane != null) {
                             pane.setMessage("");
                        table.repaint();
                        table2.tableChanged(new TableModelEvent(table2.getModel()));
                        if (pane2 != null) {
                             pane2.setMessage("");
                        table2.repaint();*/
              lookup.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        /*if(b1!= true){
                             System.out.println("Coming");
                             JTabbedPane tabbedPane = new JTabbedPane();
                             JPanel phones = new JPanel();
                             mtm = new DefaultTableModel(columnNames, 2);
                             JTable table = new JTable();
                             table =  new JTable(mtm);
                             //JPanel phones = new JPanel();
                             JScrollPane scroller = new JScrollPane();
                             JPanel p = new JPanel(new BorderLayout());
                             JPanel topPanel = new JPanel();
                             JButton lookup = new JButton("Lookup");
                             scroller = new JScrollPane(table);
                             topPanel.add(lookup);
                             phones.add(scroller);
                             tabbedPane.addTab("Phones", phones);
                             p.add(topPanel, BorderLayout.NORTH);
                             p.add(tabbedPane, BorderLayout.CENTER);
                             setContentPane(p);
                             pack();
                             di = new Dbi();
                             fetch();
                             if (pane != null) {
                                  pane.setMessage("");
                             table.repaint();
                             b1=true;
                             System.out.println("Going");
                        fetch();
                        table.tableChanged(new TableModelEvent(table.getModel()));
                        if (pane != null) {
                             pane.setMessage("");
                        table.repaint();
                        //table.setModel(new DefaultTableModel(0, 0));
                        //b1=false;
              lookup1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        fetch2();
                        table2.tableChanged(new TableModelEvent(table2.getModel()));
                        if (pane2 != null) {
                             pane2.setMessage("");
                        table2.repaint();
                        //table.setModel(new DefaultTableModel(0, 0));
         public void fetch() { // time-consuming task should be run
              Thread t = new Thread() { // in a separate thread
                   public void run() {
                        dbResult = di.getQueryResult("QUERY!!!!!");
                        mtm.setDataVector(dbResult, cnv);
              t.start(); // actionPerformed() immediately returns, not blocking GUI
         public void fetch2() { // time-consuming task should be run
              Thread t = new Thread() { // in a separate thread
                   public void run() {
                        dbResult = di2.getQueryResult("QUERY!!!!!");
                        mtm2.setDataVector(dbResult, cnv);
              t.start(); // actionPerformed() immediately returns, not blocking GUI
         public static void main(String[] args) {
              TestJava frame = new TestJava();
              frame.setVisible(true);
    class Dbi{ // make it a separate public class
         // meaningfull constructors, db connecton etc.
         public Vector<Vector> getQueryResult(String query) {
              Vector<String> v1 = new Vector<String>();
              Vector<String> v2 = new Vector<String>();
              Vector<String> v3 = new Vector<String>();
              Vector<String> v4 = new Vector<String>();
              v1.addAll(Arrays.asList(new String[] { "Tim Marshall",
                        "http://tim.marshall/", "Never never land" }));
              v2.addAll(Arrays.asList(new String[] { "Com Commercial",
                        "http://com.comcom/", "Land of gold" }));
              v3.addAll(Arrays.asList(new String[] { "Love Lovable",
                        "http://love.neverhate/", "Sun lotus state" }));
              v4.addAll(Arrays.asList(new String[] { "War Monger",
                        "http://war.momongers/", "Fire and ice city" }));
              Vector<Vector> v0 = new Vector<Vector>();
              v0.add(v1);
              v0.add(v2);
              v0.add(v3);
              v0.add(v4);
              return v0;
         // other important methods
    class Dbi2{ // make it a separate public class
         // meaningfull constructors, db connecton etc.
         public Vector<Vector> getQueryResult(String query) {
              Vector<String> v1 = new Vector<String>();
              Vector<String> v2 = new Vector<String>();
              Vector<String> v3 = new Vector<String>();
              Vector<String> v4 = new Vector<String>();
              v1.addAll(Arrays.asList(new String[] { "Ran Rand",
                        "http://tim.marshall/", "Never never land" }));
              v2.addAll(Arrays.asList(new String[] { "Jim Corbet",
                        "http://com.comcom/", "Land of gold" }));
              v3.addAll(Arrays.asList(new String[] { "Ram Jim",
                        "http://love.neverhate/", "Sun lotus state" }));
              v4.addAll(Arrays.asList(new String[] { "Click Thick",
                        "http://war.momongers/", "Fire and ice city" }));
              Vector<Vector> v0 = new Vector<Vector>();
              v0.add(v1);
              v0.add(v2);
              v0.add(v3);
              v0.add(v4);
              return v0;
         }

  • How to diable delete button in PO for all users excepting one

    Dear All
    Please guide how to disable delete button in PO for all users excepting only one.
    Thanks

    Hi,
    check following link
    [Disable fields at item level in ME22N;
    [Disable Delete Button;
    Regards
    Kailas Ugale

  • Internal Modem icon in menubar carried over by migration, how to diable?!

    Hi there! I've just upgraded from an iBook G4 12" (bought 3 weeks before the MacBook range was unveiled - typical!) to a MacBook Pro 15". As I was setting up the MBP, I used the firewire target disk mode and automatic migration to grab everything from my old machine to the new one. It worked wonderfully!
    In fact, too wonderfully. haha. On my old iBook, I had the internal modem icon enabled in the menubar. Now on the MBP, it's still there - only there IS no internal modem, so I have no idea how to go about disabling it! When I click, the menu shows "Modem: Idle (dimmed) / Connect (dimmed) / Open Network Preferences". Any ideas? I'd really appreciate it!

    Click on the icon with the Command key held down, and drag it out of the menu bar.
    (23997)

  • How to diable only one field enabled and other fields disabled for one user group?

    Hi,
    I have a form contains many fields. A group of users can add items using that form.
    As per the user requirement I have created a filtered view and that filtered view can be seen by some other sharepoint user group but as per their further requirement the new sharepoint user group is only allowed to update Remarks field. All other fields
    should be disabled for them.
    In my idea, I have to create multiple forms and in one of it except Remarks field all should be disabled but I am unable to assign multiple forms to a single list.
    Or how to make Remarks field enable to this user group and for other admin user group all fields could be enabled.
    Hope I have expressed my question correctly.
    Any solution would be appreciated.

    There is no Out of the Box way to set permissions on each column, primarily due to the performance impact. The following thread provides some options,
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c0794232-9bab-4cea-91d8-f311a793a863/how-to-set-column-wise-permission-in-sharepint-list-in-sharepoint-2010?forum=sharepointadminprevious
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to diable power on password for hp pro 3420 all in one

    how to disable power on password for hp pro 3420

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this HERE.
    HP Pro 3420 All-in-One PC Support Page
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • How to diable file path prompt?

    Everytime I hit the run button the file path prompt opens up, how can I disable it? I want to manual click the folder icon to open up browse window. Here is my code.
    Attachments:
    path.jpg ‏15 KB

    panoramarts wrote:
    Is there a way to leave it empty and not have the dialog box open?
    What would be the point to run the VI if there is no file to open???
    You could use a loop and an event structure and place the file operations inside an event case that is triggered by a value change of the path control.
    LabVIEW Champion . Do more with less code and in less time .

  • How to diable password expire feature

    Could you let me know how to disable password expire feature in apex 4.1.0.00.32. for all admin accounts(We have 40 workspaces with different adnmin accounts).
    I have checked all individual admin account in each workspace, the password expire check box is un-checked, but it still expired the account. What else I can do?
    home-->admininstration-->Users-->Edit User-->Expire Password unchecked

    Thank you very much! I followed the link , this time I had set Account Password Lifetime (days) Enter 21960 (60 years), in hope that APEX will ignore the expired day count for good, instead of 45 day default , even though I already had Require User Account Expiration and Locking – Select No
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_service_set.htm#CIHBFFGH

  • How to diable the autostart option in the Grid control

    Hi All,
    I have installed OEM Grid control and agent (10.2.0.5) on one of my vmware RHEL 5 (32 Bit) OS . During the OS bootup it will automatically startup the OPMN service and agent service . Is there any way to disable the autostartup during the OS bootup?
    Thanks !
    Kamal

    user10495704 wrote:
    Hi All,
    I have installed OEM Grid control and agent (10.2.0.5) on one of my vmware RHEL 5 (32 Bit) OS . During the OS bootup it will automatically startup the OPMN service and agent service . Is there any way to disable the autostartup during the OS bootup?
    Thanks !
    KamalSame way you do any other process. Take a look at your init.d directory.

  • How to diable refresh in jsp

    hi all,
    i want to disable the refresh button ... i am inserting into the db in the page ... i want the insertion only once .... as i am using text datatype i cant compare by db before insertion

    you could do a redirect after you execute the database logic. Then when the user refreshes the page, he only refreshes the redirect.
    A safety prevention would be to store a unique number somewhere in the database that you generate in your code (current timestamp would do the trick) and then put as a hidden field in your form. When the user submits the form the first time, the number won't exist and you insert. The second time the same form is submitted due to a refresh the number will exist and you simply do no transaction.

  • How to diable auto open downloaded files?

    currently using firefox 21.0 i believe
    thanks in advance

    Hmmmm......Well, I don't think its Firefox. What kind of files
    does this happen? All files, EXE files, music, video, updates?
    What directory are you downloading to? Do you have the same
    problem with other web browsers? If you haven't used another
    browser, try it with one of the web sites that you have the problem.
    Speaking of that, is it all web sites, some sites, a few sites?
    Are you using the Firefox downloader or another. Some web
    sites use there own download software.

  • How to diable snmp in wlse (Wireless LAN Solution Engine)

    Hi,
    I have disabled snmp in wlse, but still snmp is showing active , when we do vunuralbility test,
    can someone help me to disable this snmp in wlse.
    wlse model no: Cisco 1030
    software: 
    WLSE-2.13FCS

    I checked the switch with the snmp query tool.(IP and hostname.domain-name) -works fine-.
    All switches I'am interrested can be reached with the tool.cdp an snmp is enabled on all switches.
    I discovered two switches:
    1.cdp only discovered directly connected access points but switch 172.22.4.50. is missing.
    Seed value entered: 172.22.4.50
    Hop count defined: 1
    CDP Discovery started at 2004-01-20 18:53:07.763 (UTC)
    Device being updated :172.22.11.119 (a19.heraeus.com)
    Device being updated :172.22.11.128 (a28.heraeus.com)
    Device being updated :172.22.11.126 (a26.heraeus.com)
    Device being updated :172.22.11.127 (a27.heraeus.com)
    Number of devices (re)discovered: 4
    Inventory collection does not run for updated devices, run on demand or wait for the next polling cycle.
    CDP Discovery completed at 2004-01-20 18:53:08.462 (UTC)
    2. cdp works fine!!! AP's and switch is discoverd.
    Seed value entered: 172.22.4.42
    Hop count defined: 1
    CDP Discovery started at
    Device being updated :172.22.11.136 (a36.heraeus.com)
    Device being updated :172.22.4.42 switch.heraeus.com)
    Number of devices (re)discovered: 2
    CDP Discovery completed.

  • How to diable a cell in SAPbouiCom Grid

    Hi All,
             Is it possible to disable a cell in SAPbouiCom.Grid ?
    Now, I'm binding the data to gird with the datatable as follow.
    Me.grdData.DataTable = Me.oSAPForeCast ' oSAPForeCast is SAPbouiCOM.DataTable
    Any ideas?
    Thanks,
    Lei

    Hi Nandar,
    If you want to disable an entire column, use Pari code.
    If you want to disable a single cell, you need to catch that cell's click event and change the focus to another cell (I usually use oApplication.SendKeys("") to simulate a Tab pressed).
    Regards,
    Vítor Vieira

Maybe you are looking for